Back to FORESIGHT

Integration Setup Guide

Copy the example env files, paste your platform links and keys, then restart the backend and frontend.

copy .env.example .env
copy backend\.env.example backend\.env
copy frontend\.env.local.example frontend\.env.local
npm install
npm run dev

Azure

Azure OpenAI keys come from Azure Portal -> Azure OpenAI resource -> Keys and Endpoint. Deployment name comes from Azure AI Foundry / Azure OpenAI Studio -> Deployments. Azure DevOps values come from your DevOps organization, project settings, team settings, and User settings -> Personal access tokens.

AZURE_OPENAI_ENDPOINT=https://YOUR-RESOURCE.openai.azure.com
AZURE_OPENAI_API_KEY=YOUR_AZURE_OPENAI_KEY
AZURE_OPENAI_DEPLOYMENT=gpt-4o
AZURE_SEARCH_ENDPOINT=https://YOUR-SEARCH-SERVICE.search.windows.net
AZURE_SEARCH_KEY=YOUR_AZURE_SEARCH_ADMIN_OR_QUERY_KEY
AZURE_SEARCH_INDEX=foresight-memory
AZURE_DEVOPS_ORG_URL=https://dev.azure.com/YOUR_ORG
AZURE_DEVOPS_PROJECT=YOUR_PROJECT
AZURE_DEVOPS_TEAM=YOUR_TEAM
AZURE_DEVOPS_PAT=YOUR_PAT_WITH_WORK_ITEMS_READ_WRITE

Microsoft Teams

Create an Incoming Webhook in the target channel, or create a Teams Workflow / Power Automate flow with an HTTP trigger. Paste that URL as the webhook.

TEAMS_WEBHOOK_URL=https://YOUR_TEAMS_WEBHOOK_URL

Copilot Studio Extension (Roadmap)

In Copilot Studio, add an action/custom connector that calls POST /api/copilot/simulate. To receive outbound FORESIGHT summaries, use a Copilot Studio or Power Automate HTTP trigger URL.

COPILOT_WEBHOOK_URL=https://YOUR_COPILOT_OR_POWER_AUTOMATE_WEBHOOK_URL
COPILOT_API_KEY=OPTIONAL_BEARER_TOKEN

Governance & Compliance Layer (Microsoft Purview Ready)

Logs decision records as immutable compliance artifacts. (Placeholder: Implementation slated for Production Phase).

PURVIEW_ENDPOINT=https://YOUR_PURVIEW_ACCOUNT.purview.azure.com
PURVIEW_CLIENT_ID=OPTIONAL_SERVICE_PRINCIPAL
PURVIEW_TENANT_ID=OPTIONAL_TENANT

How FORESIGHT Runs

A decision prompt flows through Signal, Historian, Auditor, Challenger, and Synthesizer agents. The app returns risks, evidence, constraints, rollback plans, and recommended execution paths. Azure DevOps creates mitigation work items when configured. Teams and Copilot receive summary notifications. Microsoft Purview provides the audit and governance logging layer in production.