Workflows· Research & Knowledge Management

    The Knowledge Chain

    A weekly workflow that clusters the most frequent topics from closed support tickets into reviewed FAQ drafts, so the knowledge base stays current without manual research.

    automatinganalyticalwriting

    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

    The workflow starts automatically once a week, for example every Friday at 5:00 p.m.

    02Automated

    03Automated

    04Automated

    05Automated

    06Result

    Key
    PersonAutomatedResultApproval

    Requirements and operations

    Requirements

    • Ticketing system Zendesk, Freshdesk or a comparable system with API read access to categories.
    • Knowledge base with a draft area Notion, Confluence or GitBook.
    • Team chat Slack, Teams or Discord for the notice to the content team.
    • LLM access An API key for OpenAI, Claude or Gemini.

    Testing

    • Manual test run Trigger the workflow once by hand and have ten to fifteen test tickets ready.
    • Check ticket retrieval Verify that all relevant tickets from the past seven days are loaded correctly.
    • Check clustering and FAQs Check whether the topics are grouped sensibly and the drafts are phrased in customer language with clear steps.
    • Test edge cases Check behavior with very few and very many tickets, with duplicates, with multilingual tickets and with pure one-off cases.

    Go-live

    • Approve Activate the workflow only once ticket retrieval, clustering and FAQ quality hold up in testing.
    • Pilot Start with a single product area or a single queue.
    • Set a minimum frequency Set a minimum frequency per topic in the prompt, lower with few tickets, higher with high volume.
    • Review routine Establish a fixed, for example monthly, review routine in the content team.

    Common issues

    • Minimum count too low One-off cases land in the knowledge base. Raise the threshold.
    • FAQs phrased too technically Sharpen the target audience and answer length in the prompt.
    • Duplicates Build in a duplicate check against the existing knowledge base before saving.
    • No tickets found Check the filters for period, status and categories.

    Builder Prompt

    GOAL
    Build a workflow that analyzes support tickets weekly, clusters frequent questions, and creates finished FAQ drafts in the review area of the knowledge base, including a notification to the content team.
    
    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: scheduled, weekly, for example every Friday at 5:00 p.m.
    Scope: resolved or closed tickets from the past seven days from the ticketing system (for example Zendesk or Freshdesk).
    
    STEPS (sequential)
    1. Retrieve tickets: all resolved or closed tickets from the past seven days, with subject, description, category and resolution.
    2. AI step: topic clustering. Use exactly the working prompt "Ticket Analysis and Clustering" (see the Working Prompts section). Output is JSON with the field frequent_topics.
    3. AI step: create FAQ drafts. Use exactly the working prompt "FAQ Creation", with the JSON from step 2 as input. Output is JSON with the field faq_entries.
    4. Duplicate check: check the drafts against existing entries in the knowledge base. Discard duplicates or flag them as an update.
    5. Save: file all remaining drafts in the review area of the knowledge base (Notion, Confluence or GitBook), including tags and priority.
    6. Output: notify the content team in Slack or Teams, with a link to the review area and a topic summary including frequencies.
    
    PROMPT SPECIFICATIONS
    There are two fixed working prompts for this workflow, see the Working Prompts section. Take both over unchanged and in full into step 2 and step 3.
    
    DATA FLOW
    Step 1 to step 2: the retrieved tickets from the past seven days.
    Step 2 to step 3: the JSON field frequent_topics, with topic, frequency, relevance and example questions.
    Step 3 to steps 4 and 5: the JSON field faq_entries, with title, question, answer, tags and priority.
    Step 5 to step 6: the filed draft links and the topic list with frequencies.
    
    ERROR HANDLING
    No tickets found: end the run with a notice instead of empty drafts, and check the period, status and category filters.
    Topic below the defined minimum frequency: discard it, one-off cases do not belong in the knowledge base.
    AI returns no valid JSON: retry the step once, then abort the run and report the error.
    Draft is a duplicate of an existing entry: always check every draft against the current knowledge base before saving.
    
    PLACEHOLDER CONVENTION
    All placeholders in square brackets in the working prompts are variables. The ticket data and the JSON field frequent_topics are mapped dynamically, as described in the data flow. Minimum frequency, product area, tone of voice, target audience, answer length and documentation URL are not dynamic: set these yourself 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 six steps connected correctly and in the right order?
    2. Are both working prompts inserted completely and unchanged, and is the data flow between them mapped correctly?
    3. Is the JSON output of both AI steps parsed correctly, and does the duplicate check apply before saving?
    4. Are all points listed that require manual configuration: ticketing system access, knowledge base area, team chat channel, LLM access, minimum frequency, product area, tone of voice, target audience, answer length and documentation URL?

    Working prompts

    Ticket Analysis and Clustering

    Groups the past week's support tickets into topics and rates their relevance for an FAQ.

    You are a support analyst. Analyze the following support tickets from the past week and identify the most frequent questions and problems.
    
    TICKETS:
    [TICKET_DATA]
    
    TASK:
    1. Group similar questions and problems.
    2. Identify the five to ten most frequent topics.
    3. Count how often each topic occurs.
    4. Rate the relevance for an FAQ on a scale from 1 to 10.
    
    OUTPUT FORMAT (JSON):
    {
      "frequent_topics": [
        {
          "topic": "Short description of the topic",
          "frequency": count,
          "relevance": rating from 1 to 10,
          "example_questions": ["Question 1", "Question 2"]
        }
      ]
    }
    
    CRITERIA:
    At least [MIN_FREQUENCY] occurrences per topic.
    Focus on [PRODUCT_AREA], for example billing, features or technical issues.
    Individual one-off cases are ignored.

    FAQ Creation

    Turns the clustered topics into complete, customer-facing FAQ entries with tags and priority.

    You are a technical writer. Create professional FAQ entries based on the following frequent support questions.
    
    FREQUENT QUESTIONS:
    [FREQUENT_TOPICS]
    
    TASK:
    Create a complete FAQ entry for each topic with:
    1. A concise title, at most 60 characters
    2. A clearly phrased question, the way customers would actually ask it
    3. An understandable, step-by-step answer
    4. Relevant tags for categorization
    
    OUTPUT FORMAT (JSON):
    {
      "faq_entries": [
        {
          "title": "...",
          "question": "...",
          "answer": "...",
          "tags": ["tag1", "tag2"],
          "priority": "high/medium/low"
        }
      ]
    }
    
    STYLE:
    Tone: [BRAND_VOICE]
    Target audience: [TARGET_AUDIENCE]
    Answer length: [ANSWER_LENGTH]
    Avoid jargon and complicated phrasing.
    Use clear steps, examples and, where useful, links to [DOCUMENTATION_URL].

    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