Workflows· Customer Support & Service

    The Reply Loop

    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

    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.

    01Person

    A new support ticket arrives via webhook or integration with the ticketing system.

    02Automated

    03Automated

    04Automated

    05Automated

    06Result

    Key
    PersonAutomatedResultApproval

    Requirements and operations

    Requirements

    • Ticketing system Zendesk, Freshdesk or Intercom, with API access and write permissions.
    • Knowledge base Notion, Confluence or GitBook with the maintained FAQ content.
    • Team chat Slack, Teams or Discord for the note to the responsible person.
    • LLM access API access to OpenAI, Claude or Gemini.

    Testing

    • Test ticket Set up a typical request, for example "Password reset?".
    • FAQ search Check whether matching entries are found for the request.
    • Reply quality Assess the draft for personalization, matching tone and concrete solution steps.
    • Edge cases Check the behavior without a matching FAQ entry, with multilingual requests, and with very long or very short requests.

    Go-live

    • Approval to start Activate the workflow only once search, drafting and storage run cleanly.
    • Pilot Start with a single product area or ticket queue.
    • Maintain the knowledge base Add FAQ entries on an ongoing basis and update outdated content.
    • Refine tone Fine tune the tone in the prompt.

    Common issues

    • No FAQ matches Switch to semantic search instead of exact keyword matches.
    • Draft not saved Check the write permissions for comments in the ticketing system.
    • Notification not received Check the channel ID or webhook.
    • Wrong salutation Validate the name extraction and set a fallback such as "Hello there".

    Builder Prompt

    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.

    1. Open your workflow tool, for example n8n, Make, Zapier or Langdock.
    2. Create a new workflow and give it a name.
    3. Choose the AI-assisted build option if your tool offers one.
    4. Paste the builder prompt from above in full.
    5. 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.

    1. Download the JSON file from the JSON export section.
    2. Open the workflow area of your tool and create a new workflow.
    3. Give it a name and confirm.
    4. Open the menu on the workflow name and choose to import a JSON file.
    5. Upload the file, then add your own access credentials.
    6. 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.

    View workshops

    Related resources

    Browse all resources

    Conversation, not pitch

    Understand first, then decide. We take time for an initial conversation, without sales pressure, without obligation.

    Schedule a call