User Guide
Setup Instructionsβ
Step 1: Create a Copilot Studio Agentβ
Via Django Admin:β
- Navigate to the Django Admin interface
- Go to Assistants β Copilot Studio Agents
- Click Add Copilot Studio Agent
- Fill in the required fields:
- Name: Descriptive name for the agent
- Code: Unique identifier (max 45 characters, cannot be changed later)
- Token URL: OAuth2 token endpoint for authentication
- Description: Comprehensive description of the agent's capabilities
- Click Save
- Navigate to Assistants β Assistants
- Select or create an assistant
- In the Copilot Studio Agents inline section at the bottom:
- Click Add another Copilot Studio Agent
- Select the agent from the dropdown
- Click Save
info
To get the token URL navigate to your Copilot Studio agent β Channels β Direct Line Speech β Token Endpoint
Usage in Assistantsβ
Example Assistant Configurationβ
{
"code": "support-assistant",
"name": "Customer Support Assistant",
"instructions": "You are a helpful customer support assistant. Use the customer-support agent when customers ask about orders, returns, or account issues.",
"llm": "gpt-4",
"copilot_agents": ["customer-support"]
}
Example Conversation Flowβ
User: "What's the status of my order #12345?"
Assistant (internally):
- Determines it needs to check order status
- Calls tool:
copilot_agent__customer-supportwith input:"What's the status of order #12345?" - Receives response from Copilot Studio agent
- Formulates final response to user
Assistant (to user): "Your order #12345 is currently in transit and expected to arrive on November 15th."