Use descriptive IDs
Object IDs like ecom-metrics-001 are easier to manage than auto-generated UUIDs. Group related entries with a common prefix.
When you publish a shared agent to the marketplace, you can attach a curated knowledge base — training data — that every installer receives. This page covers how to create, manage, and version that training data.
Each agent template has two indexes:
This separation means you can freely update your working index without affecting any existing installations. Changes only reach installers when you publish a new version.
There are three ways to populate your agent’s training data:
If you use Claude Code or another MCP-capable AI tool, you can pipe training data directly into your agent template’s index using the Sprigr MCP server:
Use the sprigr_search tool to import objects into the agent-template-{your-slug} index.This is particularly useful for curating large knowledge bases conversationally — ask your AI assistant to research a topic and save the findings directly into the training index.
For programmatic workflows, use the training data API endpoints:
POST /api/apps/{slug}/training — Import up to 1000 objects per callGET /api/apps/{slug}/training?q=search+term — Search existing training dataDELETE /api/apps/{slug}/training/{objectId} — Remove specific entriesEach training data object is a JSON document with these recommended fields:
| Field | Required | Description |
|---|---|---|
objectID | Yes | Unique identifier (e.g., ecom-metrics-001) |
title | Recommended | Short, descriptive title for the entry |
content | Recommended | The main knowledge content — can be paragraphs, lists, structured data |
_keywords | Recommended | Comma-separated semantic tags and synonyms for better search recall |
[ { "objectID": "ecom-conversion-rates", "title": "Ecommerce Conversion Rate Benchmarks", "content": "A good ecommerce conversion rate is typically between 2-5%. Top performers achieve 10%+. Mobile conversion rates are generally 1-2% lower than desktop. Key factors include page load speed, checkout friction, trust signals, and product photography quality.", "_keywords": "conversion, rate, CVR, benchmark, ecommerce, mobile, desktop, checkout, funnel" }, { "objectID": "ecom-clv-calculation", "title": "Customer Lifetime Value (CLV)", "content": "CLV measures total revenue expected from a single customer relationship. Basic formula: Average Purchase Value x Purchase Frequency x Customer Lifespan. For subscription businesses, use: Monthly Revenue per Customer x Average Customer Lifespan in Months. Improving CLV by just 10% often has a larger impact than acquiring 10% more customers.", "_keywords": "CLV, lifetime value, customer value, retention, revenue, LTV, churn, subscription" }]When you publish a new version of your agent template, the system automatically:
agent-template-{slug}-v{version}Installers’ agents are pinned to the snapshot from the version they installed. When they update to a new version, their agent switches to the new snapshot.
Everything in your working index at the time of publishing. The snapshot preserves:
Use descriptive IDs
Object IDs like ecom-metrics-001 are easier to manage than auto-generated UUIDs. Group related entries with a common prefix.
Keep entries focused
Each entry should cover one concept or topic. Agents search and retrieve individual entries, so focused content gets better results than long documents.
Include keywords liberally
The _keywords field powers semantic search. Include synonyms, abbreviations, related terms, and alternative phrasings that someone might use when searching.
Test before publishing
Search your training data from the portal to verify entries are findable. Try the queries your agents would use and check that relevant results appear.
For an overview of the shared agent system, see Shared Agents.
To learn about the marketplace in general, see the Marketplace Overview.