Please enable JavaScript.
Coggle requires JavaScript to display documents.
COPILOT AI AGENT – AGENT FLOW - Coggle Diagram
COPILOT AI AGENT – AGENT FLOW
INPUT RECEPTION
Receive user prompt
Text / voice / file input
Capture task requirements
CONTEXT RETRIEVAL
Use conversation history
Retrieve from knowledge base
Access authorized connected data
Microsoft 365: Outlook, Teams, SharePoint, Word
TASK PLANNING
Break goal into subtasks
Define execution sequence
Determine required tools and data
Create or revise execution plan
ACTION EXECUTION
Call selected tool or API
Retrieve or process information
Create, update or perform actions
Trigger workflows (e.g. send email, create task)
Collect tool output
HUMAN APPROVAL (WHEN REQUIRED)
Check whether approval is needed (e.g. send, update, delete)
Present proposed action to user
Request confirmation
Decision: User approved?
No → Cancel or revise action → Return to task planning
Yes → Execute approved action
If approval is not required → Continue
FEEDBACK & RECOVERY LOOPS
Missing information → Clarification → Input reception
Execution failure → Error handling → Reasoning / planning
Approval rejected → Cancel or revise → Planning
User requests changes → Re-plan and execute again
INTENT UNDERSTANDING
Detect user intent
Extract key entities (who, what, when)
Identify requirements and constraints
Decision: Is the request clear?
No → Ask user for clarification → Return to input reception
Yes → Continue to context retrieval
LLM REASONING
Analyse the request
Apply relevant knowledge
Evaluate options
Make decisions
TOOL SELECTION
Choose the appropriate tool or connector
Microsoft 365 tools (Outlook, Teams, Word, etc.)
APIs
Plugins / external services
Decision: Is a tool required?
No → Prepare a direct response
Yes → Select tool and pass required inputs
VALIDATION
Check execution results
Verify accuracy and completeness
Handle errors or exceptions
Decision: Was execution successful?
No → Error handling → Re-plan → Return to reasoning / task planning
Yes → Continue to approval check
RESPONSE GENERATION
Compile and format results
Generate a clear, helpful response
Include next steps if needed
Return result to user
TASK COMPLETED