Azure copilot studio

From frank-luongt/faos-skills-marketplace · View interactive version

Azure copilot studio is an AI agent skill from the GitHub repository frank-luongt/faos-skills-marketplace. Microsoft Copilot Studio patterns for building low-code AI bots with 1,000+ Power Platform connectors. Use when creating enterprise chatbots connected to SAP, Salesforce, ServiceNow, Oracle, or other systems via Power Platform.

How to use this skill

Skill file

<!-- AUTO-GENERATED by export-skills.py — DO NOT EDIT -->


name: azure-copilot-studio

description: Microsoft Copilot Studio patterns for building low-code AI bots with 1,000+ Power Platform connectors. Use when creating enterprise chatbots connected to SAP, Salesforce, ServiceNow, Oracle, or other systems via Power Platform.


Microsoft Copilot Studio

Build enterprise AI bots using Microsoft Copilot Studio with 1,000+ Power Platform connectors to SAP, Salesforce, ServiceNow, Oracle, and other enterprise systems.

When to Use

Power Platform Enterprise Connectors (Key Selection)

| Category | Connectors |

|---|---|

| ERP | SAP (RFC, BAPI, IDoc, ABAP -- one of the most mature), Oracle ERP Cloud, Dynamics 365 |

| CRM | Salesforce (full CRUD + triggers), HubSpot, Dynamics 365 Sales |

| ITSM | ServiceNow (incidents, changes, problems), Jira |

| HR | Workday, SuccessFactors, BambooHR |

| Cloud | AWS (S3, SQS, SNS, Lambda), GCP (BigQuery, Pub/Sub, Storage) |

| Data | Snowflake (ODBC/REST), SQL Server, PostgreSQL, Oracle DB, Cosmos DB |

| Productivity | SharePoint, OneDrive, Outlook, Teams, Google Workspace |

| Communication | Slack, Twilio, SendGrid |

Patterns

1. Copilot Studio + Power Automate Flow

User asks: "What's the status of PO 4500001234?"

Copilot Studio:
  1. Extracts intent: purchase_order_status
  2. Extracts entity: PO number = 4500001234
  3. Triggers Power Automate flow:
     --> SAP Connector: GET /API_PURCHASEORDER_PROCESS_SRV/A_PurchaseOrder('4500001234')
     --> Transform response (DataWeave/expressions)
     --> Return to Copilot Studio
  4. Generates natural language response with PO details

2. Azure Logic Apps for Complex Orchestration

{
  "definition": {
    "triggers": {
      "When_Copilot_requests_data": {
        "type": "Request",
        "kind": "Http"
      }
    },
    "actions": {
      "Query_SAP_Order": {
        "type": "ApiConnection",
        "inputs": {
          "host": { "connection": { "name": "@parameters('$connections')['sap']['connectionId']" } },
          "method": "get",
          "path": "/CallRfc",
          "queries": { "rfcName": "BAPI_SALESORDER_GETDETAIL", "parameters": "{...}" }
        }
      },
      "Enrich_with_Azure_OpenAI": {
        "type": "ApiConnection",
        "inputs": {
          "host": { "connection": { "name": "@parameters('$connections')['azureopenai']['connectionId']" } },
          "method": "post",
          "path": "/openai/deployments/gpt-4o/chat/completions",
          "body": {
            "messages": [
              { "role": "system", "content": "Summarize this SAP order data for a business user." },
              { "role": "user", "content": "@body('Query_SAP_Order')" }
            ]
          }
        }
      }
    }
  }
}

3. Azure OpenAI On Your Data (RAG)

import openai

client = openai.AzureOpenAI(
    azure_endpoint="https://my-resource.openai.azure.com/",
    api_key="...",
    api_version="2024-08-01-preview",
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "What is our refund policy?"}],
    extra_body={
        "data_sources": [{
            "type": "azure_search",
            "parameters": {
                "endpoint": "https://my-search.search.windows.net",
                "index_name": "enterprise-knowledge-base",
                "authentication": {"type": "system_assigned_managed_identity"},
                "query_type": "vector_semantic_hybrid",
                "embedding_dependency": {
                    "type": "deployment_name",
                    "deployment_name": "text-embedding-ada-002",
                },
            },
        }],
    },
)

Enterprise Security

Anti-Patterns

References

<!-- Source: .faos/custom/skills/cloud/azure/ai-agents/azure-copilot-studio/SKILL.md -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.