Hereâs the setup used in the video: an order support agent named Maya, for a store called QuickMart. A customer can ask whatâs in their cart, and Maya calls an API to check it. A customer can also ask a policy question, and Maya answers from a document you uploaded.
Step 1: Create the tool
Open the node where most of the conversation happens, in this case Mayaâs main support node. Scroll down and click Create a Tool, then choose External HTTP API. Name itget_cart_details.
The description matters more than anything else here. Itâs what the agent reads to decide when to call the tool. Write it plainly: âUse this tool when the caller asks about cart details. It returns the cartâs products, quantities, total, and discounted total.â
Step 2: Attach the tool to the node
Creating the tool isnât enough by itself. Go back to Mayaâs node and selectget_cart_details under Tools, then save.
Step 3: Upload a Knowledge Base document
Click Upload Document, or go straight to Knowledge Base Files. Pick the document you want the agent to read from, a return policy, a shipping FAQ, whatever your customers actually ask about. Dograh asks how it should retrieve from this document:- Full Document works best for small files, where the agent can see the whole thing at once. It does not require an embeddings model.
- Chunked Search is for large documents, where the agent should only pull the relevant section. Configure an embeddings model before selecting this mode; otherwise document processing or retrieval will fail.
Step 4: Attach the document to the node
Same rule as the tool. Go back to Mayaâs node, scroll to Knowledge Base Documents, and attach the file.Step 5: Tell the agent when to use each
In the nodeâs prompt, spell out which mechanism handles which question. Donât leave it to guesswork:Step 6: Test it
Start a Web Call and try both:- âHi Maya, whatâs inside my cart?â Watch the transcript. Maya decides the tool is relevant, calls the API, and answers from the response instead of guessing.
- âWhatâs the return policy?â Maya retrieves the answer from the document and responds from that context.
Next Steps
Youâve now got the full loop: calls trigger automatically, data flows in and out, your number is connected, and the agent can act on live data and your own documents.- Full tool reference: parameter types, authentication, and best practices in HTTP API Tools.
- Full Knowledge Base reference: chunking behavior and embedding setup in Knowledge Base.