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

  1. Open Power Automate and navigate to Data > Custom connectors.
  2. Click + New custom connector and choose Import an OpenAPI file.
  3. Download the spec from http://localhost:4000/api/connector/openapi.json or click the button below to copy it.
  4. Set the Host and API endpoint to your deployed API base URL.
  5. Under Security, choose API Key and paste your JWT auth token (get from your app session).
  6. 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:

  1. Create an HTTP trigger flow in Power Automate (When an HTTP request is received).
  2. Copy the HTTP POST URL from Power Automate.
  3. In the AI Workspace, go to Settings > Webhooks and create a webhook with that URL.
  4. Select which events to listen to (e.g. conversation.created, message.sent, document.uploaded).
  5. 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: Bearer header.
  • 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.