Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
docs: add take it further sections to remaining cookbooks
Sushmitha Mallesh0848be34d925
diff --git a/docs/content/cookbooks/fast-api.mdx b/docs/content/cookbooks/fast-api.mdxindex cd40b5c0c..228f21eb2 100644--- a/docs/content/cookbooks/fast-api.mdx+++ b/docs/content/cookbooks/fast-api.mdx@@ -112,3 +112,16 @@ curl -X POST http://localhost:8000/connect/gmail \```Open the `redirect_url` from the response in your browser to complete OAuth.++## Take it further++This server is a starting point. A few ways to extend it:++- **Add auth middleware**: pass `user_id` from your JWT or session instead of the request body+- **Webhook-driven agents**: add a `/webhook` endpoint that triggers the agent from Stripe, GitHub, or Slack events+- **Multi-agent routing**: spin up different agents per endpoint — one for email, one for code review, one for scheduling++<Cards>+ <Card title="Build a Chat App" href="/cookbooks/chat-app" description="Full Next.js chat UI with streaming and multi-user auth" />+ <Card title="Hono Server" href="/cookbooks/hono" description="Same pattern in Hono.js for TypeScript backends" />+</Cards>diff --git a/docs/content/cookbooks/gmail-labeler.mdx b/docs/content/cookbooks/gmail-labeler.mdxindex 18cf829b1..cd870bbe1 100644--- a/docs/content/cookbooks/gmail-labeler.mdx+++ b/docs/content/cookbooks/gmail-labeler.mdx@@ -81,3 +81,16 @@ uv run --env-file .env python main.py listen default```Send yourself an email and watch the terminal. The agent will receive the event, inspect the email, and apply a label.++## Take it further++The trigger + agent pattern works for any event-driven workflow. Swap the prompt and toolkit to build:++- **Auto-responder**: draft and send replies to common questions instead of just labeling+- **Slack notifier**: add the Slack toolkit so the agent posts a summary of important emails to a channel+- **Lead router**: connect Salesforce and have the agent tag inbound emails by deal stage and assign to reps++<Cards>+ <Card title="Slack Summarizer" href="/cookbooks/slack-summariser" description="Summarize Slack channels with a single command" />+ <Card title="Background Agent" href="/cookbooks/background-agent" description="Run agents autonomously on a schedule" />+</Cards>diff --git a/docs/content/cookbooks/hono.mdx b/docs/content/cookbooks/hono.mdxindex 39b9e56d5..91f180faf 100644--- a/docs/content/cookbooks/hono.mdx+++ b/docs/content/cookbooks/hono.mdx@@ -112,3 +112,16 @@ curl -X POST http://localhost:8000/connect/gmail \```Open the `redirectUrl` from the response in your browser to complete OAuth.++## Take it further++This server handles chat, connections, and OAuth in ~50 lines. A few ways to extend it:++- **Trigger endpoints**: add a `/webhooks` route that receives [Composio trigger events](/docs/setting-up-triggers/subscribing-to-events) and kicks off an agent run+- **Scoped toolkits per route**: give `/chat/support` access to Zendesk and Notion, and `/chat/sales` access to Salesforce and Gmail+- **Edge deployment**: Hono runs on Cloudflare Workers — deploy the same agent at the edge with zero changes++<Cards>+ <Card title="FastAPI Server" href="/cookbooks/fast-api" description="Same pattern in Python with FastAPI" />+ <Card title="Build a Chat App" href="/cookbooks/chat-app" description="Full Next.js chat UI with streaming and multi-user auth" />+</Cards>diff --git a/docs/content/cookbooks/slack-summariser.mdx b/docs/content/cookbooks/slack-summariser.mdxindex 7b5ba5560..e0986de0d 100644--- a/docs/content/cookbooks/slack-summariser.mdx+++ b/docs/content/cookbooks/slack-summariser.mdx@@ -71,3 +71,16 @@ uv run --env-file .env python main.py summarize default general```Replace `general` with any channel name you want to summarize.++## Take it further++The summarizer reads from one channel, but the same pattern scales to broader workflows:++- **Cross-channel digest**: summarize multiple channels in one run and post a combined digest to a `#daily-summary` channel+- **Trigger-based**: use a [Slack trigger](/docs/setting-up-triggers/creating-triggers) to auto-summarize whenever a channel hits 50+ unread messages+- **Action items to Linear**: add the Linear toolkit and have the agent extract action items from the summary and create tickets++<Cards>+ <Card title="Gmail Labeler" href="/cookbooks/gmail-labeler" description="Event-driven agent that labels emails as they arrive" />+ <Card title="Background Agent" href="/cookbooks/background-agent" description="Run agents autonomously on a schedule" />+</Cards>diff --git a/docs/content/cookbooks/supabase-sql-agent.mdx b/docs/content/cookbooks/supabase-sql-agent.mdxindex 36ea96a06..1a04fce0c 100644--- a/docs/content/cookbooks/supabase-sql-agent.mdx+++ b/docs/content/cookbooks/supabase-sql-agent.mdx@@ -80,3 +80,16 @@ you > What are the top 10 most recent orders?```Type `exit` to quit.++## Take it further++The agent has full access to your Supabase projects via SQL. Some ideas:++- **Scheduled reports**: wrap this in a cron job to generate daily metrics and post them to Slack using the Slack toolkit+- **Admin dashboard backend**: pair with FastAPI to expose natural-language queries as an API for internal tools+- **Data migration helper**: ask the agent to compare schemas across projects and generate migration SQL++<Cards>+ <Card title="FastAPI Server" href="/cookbooks/fast-api" description="Wrap an agent in an HTTP server with auth and connection management" />+ <Card title="Background Agent" href="/cookbooks/background-agent" description="Run agents autonomously on a schedule" />+</Cards>diff --git a/docs/content/cookbooks/tool-generator.mdx b/docs/content/cookbooks/tool-generator.mdxindex c8d4133fe..1222676b5 100644--- a/docs/content/cookbooks/tool-generator.mdx+++ b/docs/content/cookbooks/tool-generator.mdx@@ -79,3 +79,16 @@ Export raw tool schemas to a JSON file:```bashuv run --env-file .env python main.py export gmail tools.json```++## Take it further++Raw tool schemas are building blocks for platform features:++- **Dynamic form builder**: use `input_parameters` JSON Schema to render forms for any tool — no hardcoded UI per integration+- **Type generation pipeline**: feed exported JSON into `json-schema-to-typescript` or `datamodel-code-generator` in CI to keep types in sync+- **Tool catalog UI**: combine `list-tools` and `toolkit-info` to build a searchable directory of available integrations and their auth requirements++<Cards>+ <Card title="App Connections Dashboard" href="/cookbooks/app-connections-dashboard" description="Build a UI for managing user connections" />+ <Card title="Tool Type Generator source" href="https://github.com/ComposioHQ/composio/tree/next/docs/examples/tool-generator" description="View the full source on GitHub" />+</Cards>