๐Ÿ› ๏ธ How-to guide ยท Last updated: September 17, 2026

<aside> ๐Ÿ—„๏ธ

WHAT IT DOES

SQL Query turns rows from your own database into knowledge. You register a read-only SELECT, and Zammo keeps the results in sync โ€” adding new rows, updating changed ones, and removing rows that are gone.

</aside>

When to use it

Use it when the answer lives in a database โ€” a directory, a catalog, a status table โ€” and you want your agent to draw on live records rather than a static export.

Before you start

Step by step

  1. Open Sources โ†’ Add source โ†’ SQL Query.
  2. Enter a Name and pick the Knowledge base the rows should land in. Add an optional Description.
  3. Paste your Connection string โ€” use a read-only database user.
  4. Enter the SQL (a single SELECT) and the Row id column that uniquely identifies each row. Optionally set a Title column and a Content column.
  5. Select Test connection & query to confirm Zammo can connect and your query returns rows โ€” this is required before you can save.
  6. Set Max rows per run (default 10,000).
  7. (Optional) add Default tags.
  8. Select Create + ingest. You'll see a result summary โ€” rows inserted, updated, and removed, plus how long it took.