> ## Documentation Index
> Fetch the complete documentation index at: https://docs.textql.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Build Playbooks Directly in Threads

> Agent-built playbooks

![Build playbooks from threads](https://mintcdn.com/textql/rPwXLR4AE3LMkrhI/images/how-it-works/playbooks/Playbooks%20from%20Threads.png?fit=max\&auto=format\&n=rPwXLR4AE3LMkrhI\&q=85\&s=eb48ede1494e783731e060ad0e429c83)

Ask Ana to build a Playbook directly in a thread — just describe what you want and she'll construct the prompt, configure the schedule, and set it up. You just review and deploy.

* **Prototype in a thread first** — Refine the analysis and charts in chat (columns, chart type, rounding rules). Convert to a Playbook once the output looks right
* **Lock in the output format** — Paste in code snippets into the Playbook prompt manually or ask Ana to "Retrain all the Python and SQL to get the correct analysis path and build a playbook that runs every Monday 9am"
* **Edit an existing playbook prompt** — Ana can update the prompt of any existing Playbook directly in a thread. Just reference the Playbook ID — the number at the end of its URL (`https://app.textql.com/playbooks/<playbook-id>`)

<video autoPlay loop muted playsInline>
  <source src="https://cdn-docs.textql.com/playbooks_from_thread.mp4" type="video/mp4" />
</video>

"Ana, build an automated playbook on this analysis"


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.