Skip to content

Knowledge lookup

A Knowledge lookup step searches one of your Knowledge Base collections and returns the best matching passages with their citations. It takes the found branch when passages come back and not_found when none do, so you can answer from your own documents or route the question elsewhere.

  • Find the refund policy passage that applies before a task agent drafts a reply.
  • Look up the preparation instructions for a lab test and send them to the patient.
  • Check whether a product question is covered by the published FAQ before handing over to a person.
  • The data lives in a business system, not in documents. Use MCP tool.
  • An agent is talking with the customer and can search knowledge itself. Give the agent the collection; see Knowledge base.
Setting What it does
Collection Required. A Knowledge Base collection in your organisation.
Query Required. What to search for. Use {{ expression }} to include run data.
Passages 1 to 20. Default: 5.
Minimum relevance 0 to 1. Passages below this score are dropped.
Metadata filters Metadata field and expression pairs, for example product = input.product.
Rerank passages Default: off.
Store result as Also saves the result under data.<name>.
Retries 0 to 5. Default: 2.
Timeout Default: 30s. When it passes, the error path is taken.
  • The found or not_found branch, and an error path.
  • steps.<step id>: the lookup result, including its passages list after the minimum relevance filter.
  • data.<name> when Store result as is set.

An insurer answers a policy question sent by email.

API / webhook → Knowledge lookup (policy wording, store as kb)
found → Task agent (draft reply from data.kb.passages) → Notify (customer) → End
not_found → Human task (answer manually) → End

Query: {{ input.question }}