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