knowledge
Manage and search the source library that grounds generated outreach messages. Add documents, refresh campaigns, and retrieve evidence to support claims.
Instructions
Curate the knowledge base that grounds generated messages. Hosted only.
Four kinds of source live in it: "upload" (documents added here),
"website" (crawled pages from your own site), "campaign" (campaign
context and offerings) and "reply_exemplar" (replies that worked).
Message generation quotes them, so what is in here decides what the
agent may claim.
Args:
action: What to do:
"list" — Show every source with kind, chunk count, and embed status
"add" — Upload one document (needs title and text)
"remove" — Delete one source (needs source_id)
"refresh" — Re-ingest the derived corpus (website, campaigns, exemplars)
"search" — Retrieve grounded evidence for a query
title: Document title, for 'add'.
text: Document body, for 'add'. Required.
source_uri: Where the document came from, for 'add'. Optional.
source_id: Which source to delete, for 'remove'. From 'list'.
scope: What to re-ingest, for 'refresh': "all" (default), "website",
"campaigns", or "exemplars".
campaign_id: Restrict 'refresh' or 'search' to one campaign.
query: What to retrieve, for 'search'. Required.
kinds: Comma-separated source kinds — "upload,website,campaign,
reply_exemplar". Filters 'search'; 'list' uses the first one.
top_k: Max evidence chunks for 'search' (default 6, clamped to 1-50).
sync: For 'refresh'. False (default) queues a background job and
returns immediately — re-run knowledge(action='list') in a
minute to watch the chunk counts land. True blocks until the
re-ingest finishes and reports a summary; it can take minutes,
and the backend only allows it for scope "campaigns" or
"exemplars" (scope "all" is refused with the reason).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sync | No | ||
| text | No | ||
| kinds | No | ||
| query | No | ||
| scope | No | all | |
| title | No | ||
| top_k | No | ||
| action | No | list | |
| source_id | No | ||
| source_uri | No | ||
| campaign_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |