Skip to content

Answer supplier onboarding questions

Use a published onboarding guide to answer policy questions, and keep short, approved FAQ entries in a vector index. A supervisor can direct requests to the appropriate specialist or use both when the question spans policy and process.

Before you begin

Publish the onboarding guide in a Document tool. Set aside a vector index for onboarding content and publish two reusable agents, one for policy requirements and one for portal steps.

Workflow flow

flowchart TD
    subgraph Maintenance["FAQ maintenance workflow"]
        Webhook([Webhook receives an approved FAQ]) --> Write["Vector DB Writer · Upsert the FAQ entry"]
        Write --> ReadBack["Vector DB Reader · Read back by document ID"]
        ReadBack --> MaintenanceResult([Return the indexed entry])
    end

    subgraph Chat["Supplier chat workflow"]
        Question([Onboarding question]) --> Guide["RAG Document Tool · Retrieve the guide and citations"]
        Guide --> FAQ["Vector DB Reader · Search the FAQ index"]
        FAQ --> Supervisor["Multi Agent · Route to the Policy Agent, Process Agent, or both"]
        Supervisor --> Answer([Return the answer and guide citations])
    end

Configure the workflows

Configure FAQ maintenance

  1. Restrict the maintenance workflow to FAQ maintainers and define String webhook inputs named documentId and text.
  2. Add a Vector DB Writer. Set Operation Type to Upsert and Content Type to text. Map Document ID and Content from the webhook inputs. Store approved, unrestricted text.
  3. Add a Vector DB Reader for the same index. Map Document ID to the webhook's documentId input to scope the lookup to the entry you just wrote. Also map Query to the webhook's text input. Return the retrieved chunks so the caller can confirm what was indexed.

Configure supplier chat

  1. Add a RAG Document Tool node named SEARCH_ONBOARDING_GUIDE. Select the published Document tool and map the chat message to Question. Keep $output.value and $output.citations separate from the FAQ results.
  2. Add a Vector DB Reader named SEARCH_FAQ on the same index as the maintenance workflow. Map {{$context.$system.$inputMessage}} to Query and set Maximum Results to 3. Check for matches before reading {{$context.$nodes.SEARCH_FAQ.$output[0].text}}.
  3. Add a Multi Agent node named ANSWER_ONBOARDING with the published policy and process agents. Pass the question, document result, citations, and FAQ matches to the supervisor. Route policy requirements to the policy agent and portal steps to the process agent. Instruct the supervisor to say when a claim lacks a supporting source.
  4. In the Multi Agent Output Specification, declare a String answer and an array of citation objects. Use the citations from the retrieved guide and return {{$context.$nodes.ANSWER_ONBOARDING.$output}}.

Run the maintenance workflow and chat

Use the maintenance workflow to index a test FAQ. Then ask in chat, “What form do I need and where do I upload it?” For this example, the published guide states that a supplier registration form is required.

Sample maintenance request

{
  "invocationMode": "END_USER",
  "message": "Maintain the onboarding FAQ.",
  "parameters": {
    "documentId": "FAQ-17",
    "text": "Upload onboarding forms in the supplier portal."
  }
}

Sample chat workflow output

{
  "answer": "Complete the supplier registration form and upload it in the supplier portal.",
  "citations": [
    {"citedText": "Submit a supplier registration form."}
  ]
}

Expected behavior

Scenario Expected behavior
Upsert the same ID with updated FAQ text A subsequent read by that ID returns the updated entry.
Ask a policy-only or process-only question The supervisor uses the relevant Agent.
Ask a question that spans requirements and portal steps Both agents contribute and the answer preserves the retrieved citation.
Remove relevant source material from the test setup The workflow handles empty retrieval results and states which information is unavailable.

Related guides
Agent · Multi Agent · RAG Document Tool · Vector DB Reader · Vector DB Writer