Create your first Guide from a chat session
After a session where you analyzed data, explored tables, or worked through a task with an agent, save the reusable context that emerged as a Guide. This can include what the agent discovered as well as definitions, table choices, and corrections you provided.
Prerequisites
- A MotherDuck account with the MCP server connected to an AI client like Claude, Cursor, or Claude Code
- A conversation containing reusable context from analysis, exploration, or another data task
The Guide is private unless you choose to publish it to your organization.
Create the Guide
-
In the conversation containing the context, send this prompt:
Create a private MotherDuck Guide from the durable business and data contextin this conversation.Capture the definitions, trusted tables, join and filter rules, working querypatterns, durable findings, corrections, and pitfalls that emerged during thework. Record reusable methods and context, not one-time results, and don'tinclude sensitive information.Default to one Guide when the context is typically needed together. If partsapply to distinct tasks or questions, propose focused Guides under descriptivetopics. Leave a Guide at the root only when its context applies across tasks.For each Guide, write a description that states when an agent should use itand, when applicable, attach references to the relevant catalog objects. Showme the proposed title, description, topic, references, and content beforesaving anything. After I approve a Guide, create it with private user access. -
Review the proposal:
- It records reusable rules, not results. Keep
Use the subscriptions table, not invoices; removeRevenue was $482K in June. - It includes useful context the agent discovered during the work.
- It includes corrections that changed the answer.
- Each Guide contains context an agent is likely to need together.
- Each description states when the Guide applies.
- It contains no credentials, personal data, or other sensitive information.
- It records reusable rules, not results. Keep
-
Tell the agent to save the proposal. It calls
create_guideand returns the Guide ID.
Test the Guide
Start a new conversation and repeat a question that needed the original context. Don't restate what the Guide contains. Check that the agent opens the Guide and answers correctly.
If the agent doesn't open the Guide, review its title, description, topic, and references. In particular, check that the description states when to use it. If the agent opens the Guide but answers incorrectly, review the content for a missing or inaccurate rule.
Update the "<guide_title>" Guide to clarify that <rule_or_correction>.
You can update the Guide whenever its definitions, source tables, or conventions change.
Optional: publish the Guide to your organization
After reviewing and testing the Guide, you can make it available to everyone in your organization. Ask your agent:
Publish the "<guide_title>" Guide to my organization.
This action requires admin permission. Publishing doesn't change ownership; only the creator can delete the Guide.
Next steps
- To reuse styling, presentation, and authoring conventions, add Dive styles and Flight conventions.
- To collect and validate context from Slack, dbt, query history, and other organizational sources, bootstrap Guides with an AI agent.
Related
- Using Guides to improve AI query accuracy — organize, manage, and discover Guides
- Tips for effective Guides — write Guides agents can apply