Power Automate & Power Platform Connector
Overview
The Enterprise AI Workspace API is compatible with Power Automate, Power Apps, and Power Pages via the built-in OpenAPI 3.0 specification endpoint. Create a custom connector in Power Automate to trigger workflows on AI events, query knowledge, and manage conversations.
Step-by-Step Setup
- Open Power Automate and navigate to Data > Custom connectors.
- Click + New custom connector and choose Import an OpenAPI file.
- Download the spec from
http://localhost:4000/api/connector/openapi.jsonor click the button below to copy it. - Set the Host and API endpoint to your deployed API base URL.
- Under Security, choose API Key and paste your JWT auth token (get from your app session).
- Once created, you can use triggers and actions in your flows:
- List webhooks — view configured webhooks
- List conversations — browse AI conversations
- Send message — chat with AI from Power Automate
- List knowledge docs — query the knowledge base
- List alerts — monitor system alerts
Webhook Triggers in Power Automate
Use the webhook system to trigger Power Automate flows when events happen in the AI Workspace:
- Create an HTTP trigger flow in Power Automate (When an HTTP request is received).
- Copy the HTTP POST URL from Power Automate.
- In the AI Workspace, go to Settings > Webhooks and create a webhook with that URL.
- Select which events to listen to (e.g.
conversation.created,message.sent,document.uploaded). - Your Power Automate flow will fire automatically when the event occurs.
Popular Power Automate Recipes
AI Response → Slack/Teams Notification
When a new AI conversation is created, send a notification to a Slack channel or Teams webhook with the conversation title and link.
Knowledge Document → SharePoint
When a document is uploaded to the knowledge base, save it to a SharePoint document library for compliance backup.
Critical Alert → Email / SMS
When an alert with severity error or critical is created, send an email or SMS via Office 365 or Twilio connector.
Conversation Summary → Planner / Todo
When a conversation is deleted or completed, extract action items using AI and create Planner tasks or To Do items.
Azure AI Search & Copilot Studio
The Azure AI Search integration indexes knowledge documents into a search index. This enables:
- Copilot Studio — connect to the Azure AI Search index as a knowledge source for custom copilots.
- Power Apps — query the knowledge index via Power Fx or custom connector.
- Azure OpenAI On Your Data — use the index as a grounding data source for GPT models.
Configure by setting AZURE_SEARCH_ENDPOINT and AZURE_SEARCH_ADMIN_KEY environment variables.
Troubleshooting
- 401 Unauthorized: Ensure your JWT token is valid and passed in the
Authorization: Bearerheader. - 404 on operations: Your authenticated user must have the required RBAC permissions (e.g.
knowledge.read,chat.write). - CORS errors: The API must be served over HTTPS in production and CORS configured to allow the Power Automate origin.