Please enable JavaScript.
Coggle requires JavaScript to display documents.
COPILOT AI AGENT – AGENT FLOW, COPILOT EMAIL MANAGEMENT AGENT, AGENT FLOW …
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
COPILOT EMAIL MANAGEMENT AGENT
USER REQUEST
"Find unread emails from my manager and summarize them."
User opens Microsoft Copilot
User submits prompt
INPUT UNDERSTANDING
Identify intent: search and summarize emails
Extract filters: unread + sender = manager
Are the instructions clear?
No → Ask who the manager is / clarify date range
Yes → Continue
CONTEXT & PERMISSIONS
Read conversation context
Check connected Outlook account
Use only authorized mailbox access
Is Outlook access available?
No → Ask user to connect or grant access
Yes → Continue
PLAN THE TASK
Create search plan
Find manager identity or sender address
Search unread messages
Filter messages from manager
SELECT TOOL
Choose Outlook / Microsoft Graph connector
Prepare query: isRead = false
Add sender filter
EXECUTE SEARCH
Call Outlook search tool
Retrieve matching email metadata and content
Collect subject, sender, date and body
CHECK SEARCH RESULTS
Were matching emails found?
No → Tell user no matching unread emails were found
Yes → Continue to summarization
Handle connector errors or expired permissions
Retry or ask user to reconnect if needed
SUMMARIZE EMAILS
Group emails by topic or urgency
Summarize each email
Extract deadlines, requests and action items
Preserve links or key details where available
VALIDATE OUTPUT
Check summaries against retrieved email content
Check sender and unread filters
Avoid inventing missing details
Is the summary accurate and complete?
No → Re-check source emails and revise
Yes → Prepare response
RETURN RESULT
Show number of matching emails
Display subject, sender and date
Provide concise summary for each email
Highlight action items and deadlines
Ask whether user wants a draft reply
OPTIONAL FOLLOW-UP ACTION
Does user request a reply?
No → End task
Yes → Draft reply for review
Show draft to user
Ask for approval before sending
Did user approve sending?
No → Edit draft or stop
Yes → Send through Outlook and verify sent status
COMPLETION
Report search and summary completion
If approved, confirm email was sent
End
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
COPILOT EMAIL MANAGEMENT AGENT
USER REQUEST
"Find unread emails from my manager and summarize them."
User opens Microsoft Copilot
User submits prompt
INPUT UNDERSTANDING
Identify intent: search and summarize emails
Extract filters: unread + sender = manager
Are the instructions clear?
No → Ask who the manager is / clarify date range
Yes → Continue
CONTEXT & PERMISSIONS
Read conversation context
Check connected Outlook account
Use only authorized mailbox access
Is Outlook access available?
No → Ask user to connect or grant access
Yes → Continue
PLAN THE TASK
Create search plan
Find manager identity or sender address
Search unread messages
Filter messages from manager
SELECT TOOL
Choose Outlook / Microsoft Graph connector
Prepare query: isRead = false
Add sender filter
EXECUTE SEARCH
Call Outlook search tool
Retrieve matching email metadata and content
Collect subject, sender, date and body
CHECK SEARCH RESULTS
Were matching emails found?
No → Tell user no matching unread emails were found
Yes → Continue to summarization
Handle connector errors or expired permissions
Retry or ask user to reconnect if needed
SUMMARIZE EMAILS
Group emails by topic or urgency
Summarize each email
Extract deadlines, requests and action items
Preserve links or key details where available
VALIDATE OUTPUT
Check summaries against retrieved email content
Check sender and unread filters
Avoid inventing missing details
Is the summary accurate and complete?
No → Re-check source emails and revise
Yes → Prepare response
RETURN RESULT
Show number of matching emails
Display subject, sender and date
Provide concise summary for each email
Highlight action items and deadlines
Ask whether user wants a draft reply
OPTIONAL FOLLOW-UP ACTION
Does user request a reply?
No → End task
Yes → Draft reply for review
Show draft to user
Ask for approval before sending
Did user approve sending?
No → Edit draft or stop
Yes → Send through Outlook and verify sent status
COMPLETION
Report search and summary completion
If approved, confirm email was sent
End
AGENT FLOW