Automated Customer Support
Scenario: Automate responses to frequently asked questions received via email.
How Tess API Helps: By integrating Tess with your support inbox, you can automatically generate and send answers to common customer queries, reducing response times and freeing your team to focus on complex issues.
Workflow
- Trigger: A new email arrives in your support inbox (e.g., via Gmail using Zapier).
- Action: Send the email content to Tess using the
/agents/{id}/execute
endpoint with an agent trained for FAQs. Setwait_execution=true
to receive an immediate response. - Action: Send the generated answer back to the customer via email.
Example Tess API Request
1. Send Email Content to Tess Agent
POST /agents/{agent_id}/execute?wait_execution=true
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
{
"temperature": "1",
"model": "tess-5",
"messages": [
{ "role": "user", "content": "How do I reset my password?" }
],
"tools": "no-tools",
"wait_execution": true
}
Response Example:
{
"template_id": "8794",
"responses": [
{
"id": 4773337,
"status": "succeeded",
"input": "How do I reset my password?",
"output": "To reset your password, click on 'Forgot Password' on the login page and follow the instructions sent to your email.",
"credits": 0.000337,
"root_id": 4773337,
"created_at": "2025-01-05T19:35:21.000000Z",
"updated_at": "2025-01-05T19:35:23.000000Z",
"template_id": 8794
}
]
}
2. Send the Answer Back to the Customer
Use your email provider's API (e.g., Gmail, Outlook) to send the response back to the customer.
Benefits
- Reduces time spent on routine queries
- Ensures consistent, high-quality responses
- Allows your team to focus on more complex support cases
Endpoints Used
POST /agents/{id}/execute
Tip: You can use automation tools like Zapier or Make to connect your email inbox and Tess API seamlessly!