---
title: "Zendesk tickets answered from your documents with cited passages | FlowRunner flow"
description: "Every new Zendesk ticket gets an internal note drafted from the passages Captain finds in your help-center and policy documents, each point naming its document and page. No match, the note says so."
url: https://flowrunner.ai/flows/captain-zendesk-tickets-answered-from-documents
date_published: 2026-12-01
date_modified: 2026-12-02T08:59:36-08:00
---

# Zendesk tickets answered from your documents with cited passages

Every new Zendesk ticket gets an internal note drafted from the passages Captain finds in your help-center and policy documents, each point naming its document and page. No match, the note says so.

## The prompt

When a new ticket comes into Zendesk, search our Support Answers collection in Captain with the ticket's subject and description. Draft a suggested answer from the best passages only, with the document and page behind each point, and add it to the ticket as an internal note. If nothing in our documents answers it, say so in the note instead of guessing.

FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.

## The flow

[Import this flow](https://flowrunner.ai/downloads/prompt-to-flow/captain-zendesk-tickets-answered-from-documents.json)

-   [Captain](https://flowrunner.ai/integrations/captain)
-   [Zendesk](https://flowrunner.ai/integrations/zendesk)

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. [How importing works](https://docs.flowrunner.ai/manage/flows#importing-a-flow)

## What each step does

1.  New ticket in Zendesk Starts when a ticket is created. Zendesk posts it to FlowRunner as it happens.
2.  Read the ticket Fetches the ticket's description, the customer's first message.
3.  Search your documents in Captain Searches the collection in plain language with the subject and description, and gets back up to 8 passages with their documents, pages and scores, at most 3 per document.
4.  Any passages found? No passages at all, and Note that nothing matched adds an internal note saying your documents hold nothing for this ticket.
5.  Draft the suggested answer An AI agent writes the note from the passages alone: a suggested answer in short points, each ending with its document and page in brackets. When the passages do not really answer the question, the note opens by saying so and names what came closest.
6.  Add the note to the ticket Adds the note as an internal comment, visible to agents only. The support agent checks the cited pages and writes the reply to the customer.

## Need it built for you? Our team does custom work.

Tell us the process. Our implementation team at Midnight Flow builds it around how you work, tests it on your real data, and keeps it running, in your own FlowRunner workspace.

[Have us build it](https://midnightflow.ai/packages/custom?utm_source=flowrunner.ai&utm_medium=referral&utm_campaign=general&utm_content=flows.aside&utm_term=captain-zendesk-tickets-answered-from-documents)

## Before you turn it on

-   Enter your Zendesk subdomain, agent email and API token, and your Captain API key from Captain Studio.
-   Add your Anthropic key in the flow setting Anthropic key, and set Captain collection to the collection that holds your help-center and policy documents.
-   Zendesk registers a webhook and a business-rule trigger for new tickets when the flow is turned on.

[Everything FlowRunner does with Captain](https://flowrunner.ai/integrations/captain)

---
Markdown version of https://flowrunner.ai/flows/captain-zendesk-tickets-answered-from-documents. Site index: https://flowrunner.ai/llms.txt
