Tutorial: Workflow Automation
Build a workflow that receives requests, classifies them, calls APIs, and returns results
This tutorial builds a “ticket routing” workflow: it receives user input, determines priority with a question classification node, calls a knowledge base and an external HTTP API, and finally outputs the ticket result.
Prerequisites
The current team has a chat model, at least one processed knowledge base, and a callable test HTTP endpoint. To publish the Webhook, create an API Key and have workflow publishing permissions.
Final Result
The published workflow has an input variable, classification branches, knowledge base retrieval, an HTTP tool call, an output node, and run tracing.

Step 1: Define the Start Inputs
Create a workflow and select the User Input start node, then add: customer_id (text, required), message (paragraph, required), priority (dropdown option, optional, default normal).
Step 2: Classify & Branch
- Add a Question Classifier node and define three categories:
billing,technical,general. - Add a Condition to route high-priority or technical issues to the knowledge base and API branch.
- Connect inputs and classification outputs with the variable selector.

Step 3: Retrieve & Call the HTTP API
- Add Knowledge Retrieval with the query
{message}and Top K of5. - The editor's node panel does not offer a bare HTTP node. Instead, create an HTTP tool under Capabilities > Tools > Create Tool > HTTP API: select
POST, use the test endpoint as the URL, and keep Timeout at its default30. - Back in the workflow, add a Tool node and select the HTTP tool you just created.
- In the parameter configuration, map
customer_id, the classification result, and the knowledge base summary to the tool's inputs, then test the failure branch.
Step 4: Define Outputs & Debug
- Add an Output node and map
category,ticket_id,answer, andsources. - Open the Checklist and fix all errors.
- In the editor select Run to open the Test Run drawer, then use Debug (use draft) to test a normal request, an unknown category, an API timeout, and a no-knowledge-base result separately.
- Review each node's inputs, outputs, duration, and errors in the drawer's Trace tab.
Step 5: Publish the Webhook
- Open Workflow Settings > Trigger, set Trigger Method to Webhook, and save.
- Select Publish; in the run page presentation options, choose Form and result.
- In Access API, copy the Webhook URL and the sample request.
- Replace the placeholder in the sample with your own API key and send the JSON request; follow progress and results on the Logs page or in the run drawer.
Acceptance criteria
Normal requests return a ticket ID; conditional branches run per category; HTTP failures can be located in the tracing; the Webhook only accepts requests carrying a valid API key; the logs show node status, duration, and outputs.
How is this guide?