Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

docs: add Send button to chat examples, GitHub link, and review guidelines

Sushmitha Malleshc14dc078027e
diff --git a/docs/CLAUDE.md b/docs/CLAUDE.md
index b24aa7c9b..fad6af607 100644
--- a/docs/CLAUDE.md
+++ b/docs/CLAUDE.md
@@ -70,6 +70,10 @@ Detailed documentation for Claude is organized in `.claude/`:
- Dynamic toolkit pages are validated against slugs from `public/data/toolkits.json`
- Non-Fumadocs `.md` files (like FAQ snippets) are picked up via `content/**/*.md` glob
+## Code Review Guidelines
+
+**`docs/examples/` is tutorial code.** Review for correctness and clarity, not production-readiness. Skip accessibility (aria attributes, focus management), error boundaries, i18n, comprehensive error handling, and similar concerns that add noise to a teaching example. The goal is to teach Composio integration with minimal code.
+
## AI-Native Documentation
**Prefer cURL over "click"** - Most docs traffic comes from AI crawlers. When documenting API interactions, prefer showing cURL commands over UI instructions like "click this button" or "navigate to settings". cURL is machine-readable and can be directly executed by AI agents.
diff --git a/docs/content/cookbooks/chat-app.mdx b/docs/content/cookbooks/chat-app.mdx
index 9e0f9ab19..c0bca7025 100644
--- a/docs/content/cookbooks/chat-app.mdx
+++ b/docs/content/cookbooks/chat-app.mdx
@@ -5,6 +5,8 @@ description: Build an AI chat app with tool access to 1000+ apps in about 30 lin
Give your AI agent access to Gmail, GitHub, Slack, Notion, and 1000+ other apps. This tutorial builds a Next.js chat app that handles tool discovery, user authentication, and action execution in about **30 lines of code**.
+[View source on GitHub](https://github.com/ComposioHQ/composio/tree/next/docs/examples/chat-app)
+
## What you'll build
- A chat app where your agent can find and use tools across 1000+ apps
diff --git a/docs/examples/chat-app/page-with-tools.tsx b/docs/examples/chat-app/page-with-tools.tsx
index 66889ef85..30846ec55 100644
--- a/docs/examples/chat-app/page-with-tools.tsx
+++ b/docs/examples/chat-app/page-with-tools.tsx
@@ -78,14 +78,22 @@ export default function Chat() {
sendMessage({ text: input });
setInput("");
}}
+ className="flex gap-2"
>
<input
value={input}
onChange={(e) => setInput(e.target.value)}
placeholder="Ask me anything..."
disabled={isLoading}
- className="w-full p-3 border border-gray-300 rounded-lg"
+ className="flex-1 p-3 border border-gray-300 rounded-lg"
/>
+ <button
+ type="submit"
+ disabled={isLoading}
+ className="px-4 py-3 bg-black text-white rounded-lg disabled:opacity-50"
+ >
+ Send
+ </button>
</form>
</main>
);
diff --git a/docs/examples/chat-app/page.tsx b/docs/examples/chat-app/page.tsx
index 32bc34ee2..975d0eae1 100644
--- a/docs/examples/chat-app/page.tsx
+++ b/docs/examples/chat-app/page.tsx
@@ -58,14 +58,22 @@ export default function Chat() {
sendMessage({ text: input });
setInput("");
}}
+ className="flex gap-2"
>
<input
value={input}
onChange={(e) => setInput(e.target.value)}
placeholder="Ask me anything..."
disabled={isLoading}
- className="w-full p-3 border border-gray-300 rounded-lg"
+ className="flex-1 p-3 border border-gray-300 rounded-lg"
/>
+ <button
+ type="submit"
+ disabled={isLoading}
+ className="px-4 py-3 bg-black text-white rounded-lg disabled:opacity-50"
+ >
+ Send
+ </button>
</form>
</main>
);