Searches the FAQ knowledge base for every new support ticket, drafts a personalized reply, and hands it to a human for review before it goes out.
automatingresearchingwriting
Description
Standard support requests cost time that is rarely proportionate to the request: a password reset, an invoice request, a delivery status check. The Reply Loop takes the first draft off your hands. As soon as a ticket comes in, the workflow searches the connected knowledge base for matching FAQ entries and drafts a personalized reply that addresses the customer by name and names concrete next steps.
The draft lands in the ticket as an internal comment, not as a sent reply. The responsible person is notified in the team chat, reviews the draft, adjusts it if needed, and sends it. This keeps the decision with the human while the drafting work for recurring cases falls away. For requests the knowledge base has nothing on, the case stays entirely with the support person: a draft without a factual basis should not be generated automatically.
Draft in seconds: The personalized reply draft is ready right after the ticket comes in.
Consistent quality: Every reply follows the same tone and the approved FAQ content.
Agents freed up: Standard requests run automatically, so focus stays on the complex cases.
Knowledge base actively used: The FAQ gets used consistently, and gaps in it become visible.
Steps
Every step shows who carries it out: icon, colour and label together indicate whether a person acts, whether it runs automatically, whether a result is produced, or whether an approval is required.
01 · Person
A new support ticket arrives via webhook or integration with the ticketing system.
02 · Automated
Subject, message, requester name and further metadata are loaded.
03 · Automated
The knowledge base is searched using full text or semantic search, and the most matching entries are extracted.
04 · Automated
A personalized reply draft is created from the ticket content and FAQ matches, with a salutation, matching tone and concrete next steps.
05 · Automated
The draft is stored as an internal comment or draft in the ticket, ready for review.
06 · Result
A message in Slack, Teams or a comparable channel informs the agent, with a ticket link and a note about the draft that is ready.
Key
PersonAutomatedResultApproval
Requirements and operations
Requirements
Ticketing systemZendesk, Freshdesk or Intercom, with API access and write permissions.
Knowledge baseNotion, Confluence or GitBook with the maintained FAQ content.
Team chatSlack, Teams or Discord for the note to the responsible person.
LLM accessAPI access to OpenAI, Claude or Gemini.
Testing
Test ticketSet up a typical request, for example "Password reset?".
FAQ searchCheck whether matching entries are found for the request.
Reply qualityAssess the draft for personalization, matching tone and concrete solution steps.
Edge casesCheck the behavior without a matching FAQ entry, with multilingual requests, and with very long or very short requests.
Go-live
Approval to startActivate the workflow only once search, drafting and storage run cleanly.
PilotStart with a single product area or ticket queue.
Maintain the knowledge baseAdd FAQ entries on an ongoing basis and update outdated content.
Refine toneFine tune the tone in the prompt.
Common issues
No FAQ matchesSwitch to semantic search instead of exact keyword matches.
Draft not savedCheck the write permissions for comments in the ticketing system.
Notification not receivedCheck the channel ID or webhook.
Wrong salutationValidate the name extraction and set a fallback such as "Hello there".
Builder Prompt
Copy the prompt below in full into your automation tool or agent builder. As a file: antwort-schleife.en.json
GOAL
Build a workflow that automatically searches the FAQ knowledge base for every new support ticket, creates a personalized reply draft from it, and places it in the ticket for the responsible agent to review. No automatic dispatch to the customer.
Adapt the structure to the concepts of your automation tool, for example nodes, steps, zaps or agent actions. While doing so, preserve the trigger logic, the sequence and the data flow.
TRIGGER
Type: webhook or direct integration with the ticketing system (Zendesk, Freshdesk or Intercom), fires on every new ticket.
STEPS
1. Load ticket data: subject, message, requester name and metadata such as queue and assigned agent.
2. Search the FAQ: query the knowledge base using the core terms of the request, preferring semantic search over exact keyword matches. Collect the most matching entries together with content and links.
3. AI step: create the reply draft, using the prompt below exactly.
4. Save the draft: as an internal comment or draft in the ticket, no automatic dispatch to the customer.
5. Output: notify the responsible agent in Slack or Teams, with a ticket link and a note about the draft that is ready.
PROMPT (use exactly as written)
FAQ reply generator:
"""
You are a professional support agent for [COMPANY]. Analyze the following customer inquiry and create a helpful, friendly reply draft.
Customer inquiry:
Subject: [TICKET_SUBJECT]
Message: [TICKET_MESSAGE]
Requester name: [CUSTOMER_NAME]
Relevant FAQ entries:
[FAQ_RESULTS]
Task:
Create a reply draft that
1. addresses the inquiry directly and calls the requester by name,
2. uses the information from the FAQ entries but tailors it to the specific situation,
3. is written in the tone [TONE], for example professional and friendly, casual or formal,
4. names concrete next steps or solutions,
5. includes a matching closing and signature.
Format:
Output only the finished reply draft, without additional explanations or meta commentary.
"""
DATA FLOW
Step 1 to step 3: subject, message and requester name.
Step 2 to step 3: the most matching FAQ entries.
Step 3 to step 4: the finished reply draft.
Trigger and step 1 to step 5: assigned agent and ticket link.
ERROR HANDLING
No FAQ matches: create the draft anyway, but flag it clearly as without an FAQ basis so the agent can decide. This also signals a gap in the knowledge base.
Requester name not extractable: use a neutral fallback, for example "Hello there", instead of an incorrect salutation.
Draft not saved: check the write permissions for comments and drafts in the ticketing system.
Notification not received: check the channel ID or webhook.
Request in a different language: create the draft in the language of the request.
PLACEHOLDER CONVENTION
All placeholders in square brackets are variables. Mapped dynamically are [TICKET_SUBJECT], [TICKET_MESSAGE], [CUSTOMER_NAME] and [FAQ_RESULTS], as described in the data flow. Not dynamic are [COMPANY] and [TONE]: set these manually before activation. List all placeholders that require manual configuration separately at the end.
SELF CHECK BEFORE COMPLETION
Check, before you report the workflow as finished:
1. Are all steps connected correctly, and is the draft stored exclusively internally, without being sent to the customer?
2. Is the prompt inserted in full and unchanged, and are all dynamic placeholders mapped?
3. Does the FAQ search use semantic matching, and are the matches passed to the prompt correctly?
4. Are all points listed that require manual configuration: the ticketing system webhook and write permissions, access to the knowledge base, the notification channel, [COMPANY], [TONE] and the LLM access?
Working prompts
FAQ reply generator
The prompt for the AI step that generates the reply draft from the ticket content and FAQ matches. Usable on its own, also outside the full workflow specification.
You are a professional support agent for [COMPANY]. Analyze the following customer inquiry and create a helpful, friendly reply draft.
Customer inquiry:
Subject: [TICKET_SUBJECT]
Message: [TICKET_MESSAGE]
Requester name: [CUSTOMER_NAME]
Relevant FAQ entries:
[FAQ_RESULTS]
Task:
Create a reply draft that
1. addresses the inquiry directly and calls the requester by name,
2. uses the information from the FAQ entries but tailors it to the specific situation,
3. is written in the tone [TONE], for example professional and friendly, casual or formal,
4. names concrete next steps or solutions,
5. includes a matching closing and signature.
Format:
Output only the finished reply draft, without additional explanations or meta commentary.
JSON export
Setup
Two routes lead to the same result. Pick the one that fits your setup.
Suitable when you want to build the workflow in your own automation tool.
Open your workflow tool, for example n8n, Make, Zapier or Langdock.
Create a new workflow and give it a name.
Choose the AI-assisted build option if your tool offers one.
Paste the builder prompt from above in full.
Check the result against the step sequence in this document, then add your access credentials and channels.
Suitable when you want to take the workflow over unchanged.
Download the JSON file from the JSON export section.
Open the workflow area of your tool and create a new workflow.
Give it a name and confirm.
Open the menu on the workflow name and choose to import a JSON file.
Upload the file, then add your own access credentials.
Run a test before you activate the workflow.
Last reviewed:
In the workshop this becomes your method.
A single prompt becomes a repeatable method. We show that in the workshop From Prompt to Method.