🛠️ 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. Set Max rows per run (default 10,000).
  6. (Optional) add Default tags.
  7. Select Create + ingest. You'll see a result summary — rows inserted, updated, and removed, plus how long it took.

The SQL data source form: pick a knowledge base, paste a read-only connection string, and enter your SELECT query.

The SQL data source form: pick a knowledge base, paste a read-only connection string, and enter your SELECT query.

Every setting