Architecture
Your backend keeps a copy of tickets (from webhooks and the incremental export API), adds your AI's data such as confidence, sentiment, drafts and handoff reasons, and serves Cove from one API. Cove never talks to Zendesk directly, so your Zendesk credentials stay on the server.
Replying
When a person sends a reply from Cove's inbox, your backend adds a comment to the Zendesk ticket. When your AI replies, it does the same with its own author, so the history matches in both places.