@devries-cameron20 / composio-1 / commits / f125c9a87
Fork 0

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: update CrewAI provider page to Steps pattern

Standardized layout with Install, Configure API Keys, Create session and run steps. Updated example to email task for consistency. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmithamallesh committed Feb 17, 2026 at 16:26 UTC f125c9a873e705e9a108bff3348e455e3978ed7b
1 file changed +34 -21
docs/content/docs/providers/crewai.mdx
+34 -21
@@ -1,51 +1,64 @@
1 ---
2 title: CrewAI
3 description: Build an agent with CrewAI and enable it to use 800+ tools with Composio.
4 -keywords: [crew]
4 +keywords: [crewai]
5 ---
6
7 -The CrewAI Provider formats Composio tools into an object compatible with CrewAI's tool calling capabilities.
7 +The CrewAI provider transforms Composio tools into CrewAI's [BaseTool](https://docs.crewai.com/concepts/tools) format with built-in execution.
8
9 -## Setup
10 -
11 -The CrewAI provider is available for only the Python SDK.
9 +<Steps>
10 +<Step>
11 +**Install**
12
13 ```bash
14 -pip install composio composio_crewai crewai langchain_openai
14 +pip install composio composio_crewai crewai
15 +```
16 +</Step>
17 +
18 +<Step>
19 +**Configure API Keys**
20 +
21 +<Callout type="info">
22 +Set `COMPOSIO_API_KEY` with your API key from [Settings](https://platform.composio.dev/?next_page=/settings) and `OPENAI_API_KEY` with your [OpenAI API key](https://platform.openai.com/api-keys).
23 +</Callout>
24 +
25 +```txt title=".env"
26 +COMPOSIO_API_KEY=xxxxxxxxx
27 +OPENAI_API_KEY=xxxxxxxxx
28 ```
29 +</Step>
30
17 -## Usage
31 +<Step>
32 +**Create session and run**
33
34 ```python
35 from crewai import Agent, Crew, Task
21 -from langchain_openai import ChatOpenAI
22 -
36 from composio import Composio
37 from composio_crewai import CrewAIProvider
38
26 -openai_client = ChatOpenAI()
39 composio = Composio(provider=CrewAIProvider())
40
41 # Create a session for your user
42 session = composio.create(user_id="user_123")
43 tools = session.tools()
44
33 -crewai_agent = Agent(
34 - role="Github Agent",
35 - goal="You take action on Github using Github APIs",
36 - backstory="You are an AI agent that takes actions on Github on users' behalf.",
37 - verbose=True,
45 +agent = Agent(
46 + role="Email Agent",
47 + goal="Send emails on behalf of the user",
48 + backstory="You are an AI agent that sends emails using Gmail.",
49 tools=tools,
39 - llm=openai_client,
50 + llm="gpt-5.2",
51 )
52
53 task = Task(
43 - description="Star the composiohq/composio repository on GitHub",
44 - agent=crewai_agent,
45 - expected_output="Whether the star action succeeded",
54 + description="Send an email to john@example.com with the subject 'Hello' and body 'Hello from Composio!'",
55 + agent=agent,
56 + expected_output="Confirmation that the email was sent",
57 )
58
48 -my_crew = Crew(agents=[crewai_agent], tasks=[task])
49 -result = my_crew.kickoff()
59 +crew = Crew(agents=[agent], tasks=[task])
60 +result = crew.kickoff()
61 print(result)
62 ```
63 +</Step>
64 +</Steps>