This guide walks you from sign-up to a working Support Router workflow in about ten minutes. You use only built-in mock data — no external accounts or API keys for third-party services.
The Support Router is a pre-built blueprint that handles common customer-support questions. It includes:
Four agents — a triage agent that classifies the customer's intent, plus three specialists for order status, returns, and product questions
A mock store API with e-commerce tools (order lookup, tracking, return eligibility, product search) so every response uses real data instead of guesses
A routing graph that automatically hands off each conversation to the right specialist based on what the customer asks
Support Router overview in the canvas
Tip: This template works out of the box — the store API is mock data bundled with the blueprint, so there's nothing else to set up.
Create a workspace when prompted (or use the workspace switcher to add one), then make sure it's selected.
You need an active workspace before you can deploy blueprints or call APIs.
Step 2: Deploy the Support Router
In the sidebar, open Blueprints.
Find Support Router in the Support category (or search for it).
Click the card, then choose Use this blueprint. This opens the template editor.
Save the workflow (toolbar Save, or ⌘S / Ctrl+S). This creates the workflow and uploads the agents, the mock store API, and the routing graph.
Publish to deploy (toolbar Publish, or ⌘⇧P / Ctrl+Shift+P). Once publish succeeds, the workflow is live in your workspace.
Blueprints library
Template editor — Save and Publish
Step 3: Test your workflow
Go to Home → Workflows and open Smart Customer Support That Knows Your Order History (the workflow the Support Router blueprint created).
Open the Run tab.
In the INPUT editor, replace the placeholder values with:
json
{"message":"Where is my order ORD-12345?","order_id":"ORD-12345"}
Click Run and wait for the output to appear on the right.
The triage agent routes your question to the order specialist, which calls the mock store API to look up the order and returns real tracking details — items, total, shipping address, and carrier.
Run tab with input and output
Step 4: Test with the API
You can call the same endpoint the app uses to run a workflow programmatically.
Get your API key
Open Settings for your workspace (sidebar → Settings).
Go to the API Keys tab.
Create a key if you don't have one, and copy the secret when it's shown — you won't be able to see it again.
Make the request
The endpoint is:
text
POST https://cp.graphn.ai/v1/YOUR_WORKSPACE_ID/workflows/YOUR_WORKFLOW_ID/run
Replace YOUR_WORKSPACE_ID and YOUR_WORKFLOW_ID with your actual IDs (you can find both in the URL bar when viewing your workflow).
bash
curl-X POST "https://cp.graphn.ai/v1/YOUR_WORKSPACE_ID/workflows/YOUR_WORKFLOW_ID/run"\-H"Content-Type: application/json"\-H"Authorization: Bearer YOUR_API_KEY"\-d'{"input":{"message":"Where is my order ORD-12345?","order_id":"ORD-12345"}}'
You can also use Python:
python
import requests
resp = requests.post("https://cp.graphn.ai/v1/YOUR_WORKSPACE_ID/workflows/YOUR_WORKFLOW_ID/run", headers={"Authorization":"Bearer YOUR_API_KEY"}, json={"input":{"message":"Where is my order ORD-12345?","order_id":"ORD-12345"}},)print(resp.json())
The request body wraps your message inside an input object. The Authorization header uses the API key you created above.
You can also copy a ready-made snippet from the API tab on your workflow page — it fills in your workspace and workflow IDs automatically.
Workflow API tab
Warning: Treat API keys like passwords. Don't commit them to source control or share them in public channels.
What's happening under the hood
The triage agent reads the customer's message and classifies intent — order status, returns, or product questions.
The routing graph hands off to the right specialist based on that classification.
The specialist calls the mock store API tools to look up real data (orders, tracking, returns, or products).
The specialist's response is returned as the workflow output.
Stuck, found a bug, or want to talk through a workflow design? Join the GraphN Discord. The team is there, and it is the fastest way to reach us directly.