Key features and functionality
- Asynchronous execution: Allows the agent to finalize data and trigger follow-up processes without interrupting the user experience.
- Post-conversation data handling: Captures and processes important details from the conversation for reporting, logging, or integration.
- Customizable workflows: Supports integration with external systems, enabling seamless handoffs and automated follow-ups.
Use cases
The End function:1. Logs conversation metadata
- Save key conversation details, such as duration, topic, or sentiment analysis, to a database or CRM.
- Example use case: Track customer service interactions for reporting and performance analysis.
2. Triggers workflows
- Start processes like creating support tickets, sending confirmation emails, or updating account records.
- Example use case: Automatically notify the sales team about potential leads from the conversation.
3. Schedules follow-ups
- Prepare reminders, SMS notifications, or callbacks for unresolved queries.
- Example use case: Send a confirmation SMS after booking an appointment or a callback request.
Implementation example
Below is a Python implementation of the End function:Best practices for End function design
-
Efficient execution:
- Design the function to complete quickly to avoid slowing down post-conversation processes.
-
Error handling:
- Ensure errors during execution do not disrupt downstream workflows.
- Implement fallback mechanisms for failed API calls or missing data.
-
Data consistency:
- Validate and sanitize data collected during the conversation before processing or logging it.
-
Relevance:
- Include only necessary post-conversation tasks to maintain efficiency and focus.
Examples: Enhancing post-conversation workflows
π Data logging for analytics
Capture details like customer sentiment, topics discussed, and the resolution status for reporting and analytics. Example:- βLogged: Customer expressed interest in our premium plan and showed positive sentiment.β
π Automatic follow-ups
Send reminders, confirmation messages, or escalation notices to keep the customer informed. Example:- βAn email has been sent confirming your booking for January 10th.β
π Task automation
Streamline processes by triggering external workflows or integrations. Example:- βSupport ticket created: Issue with account login noted during the conversation.β