Overview
The Zendesk integration enables:- AI-powered ticket responses via Zendesk webhooks
- Sidebar app for ticket management
- Automatic AI responses to customer comments
- Toggle AI on/off per ticket
- Seamless handoff between AI and human agents
Installation
Step 1: OAuth Connection
- Navigate to your Support Unicorn instance
- Go to Settings → Integrations → Zendesk
- Click “Connect Zendesk”
- You’ll be redirected to Zendesk for authorization
- Authorize the app
- You’ll be redirected back with the connection established
Step 2: Configure Webhook
- In Zendesk, go to Admin → Apps and integrations → Webhooks
- Click “Create webhook”
- Set:
- Endpoint URL:
https://your-domain.com/zendesk/webhook - Request method: POST
- Request format: JSON
- Endpoint URL:
- Subscribe to events:
ticket.comment.created
- Save the webhook
Step 3: Configure Agent
- In Support Unicorn, go to Zendesk Installations
- Find your installation
- Click “Configure”
- Select an AI Agent from the dropdown
- Click “Save”
Step 4: Install Sidebar App (Optional)
See the Zendesk Sidebar App Installation Guide for detailed instructions.Usage
Automatic AI Responses
When a customer adds a comment to a Zendesk ticket:- Zendesk sends a webhook to Support Unicorn
- The AI agent processes the comment
- An internal note (not public) is added to the ticket with the AI response
- The response is based on your agent’s knowledge base
Toggling AI per Ticket
Use the sidebar app to enable/disable AI for specific tickets:- Open a ticket in Zendesk
- Find the “Support Unicorn AI Agent” section in the sidebar
- Click “Disable AI” or “Enable AI” as needed
Human Handoff
When AI can’t handle a request:- The procedure can trigger an escalation
- The ticket is marked for human review
- Your team is notified (via Slack, if configured)
API Endpoints
The Zendesk integration uses these API endpoints:| Endpoint | Method | Description |
|---|---|---|
/zendesk/install | GET | OAuth installation page |
/zendesk/install | POST | Create installation |
/zendesk/webhook | POST | Receive Zendesk events |
/api/zendesk_installations/:id/ai_status | GET | Get AI status for ticket |
/api/zendesk_installations/:id/toggle_ai | POST | Toggle AI on/off |
Configuration
Agent Selection
Each Zendesk installation can be linked to one AI agent:- Navigate to Integrations → Zendesk
- Click on your Zendesk installation
- Select an AI agent from the dropdown
- Click “Save Changes”
Webhook Security
Webhooks are secured using:- API key authentication
- Installation ID validation
- Ticket ID verification
Troubleshooting
AI not responding to tickets
- Check webhook is configured in Zendesk
- Verify agent is selected for installation
- Check agent has knowledge base content
- Review Rails logs for webhook errors
Sidebar app not appearing
- Ensure sidebar app is installed (see setup guide)
- Check app is enabled in Zendesk
- Verify API base URL is accessible
- Check browser console for errors
Webhook not receiving events
- Verify webhook URL is correct
- Check webhook is active in Zendesk
- Ensure SSL certificate is valid (HTTPS required)
- Test webhook delivery in Zendesk dashboard
Next Steps
Sidebar App Installation
Install the Zendesk sidebar app for ticket management
Twilio Integration
Connect with Twilio for SMS and WhatsApp