🛠️ How-to guide

<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 SourcesAdd sourceSQL 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.