docs/en/enterprise/features/tools-and-integrations.mdx
Tools & Integrations is the central hub for connecting third‑party apps and managing internal tools that your agents can use at runtime.
<Frame>  </Frame>Connect enterprise‑grade applications (e.g., Gmail, Google Drive, HubSpot, Slack) via OAuth to enable agent actions.
{" "} <Steps> <Step title="Connect"> Click <b>Connect</b> on an app and complete OAuth. </Step> <Step title="Configure"> Optionally adjust scopes, triggers, and action availability. </Step> <Step title="Use in Agents"> Connected services become available as tools for your agents. </Step> </Steps>
{" "}
<Frame></Frame>{" "}
<Frame>  </Frame>To use the integrations locally, you need to install the latest crewai-tools package.
uv add crewai-tools
{" "}
<Note>
To use integrations with Agent(apps=[]), you must set the
CREWAI_PLATFORM_INTEGRATION_TOKEN environment variable with your Enterprise
Token.
</Note>
export CREWAI_PLATFORM_INTEGRATION_TOKEN="your_enterprise_token"
Or add it to your .env file:
CREWAI_PLATFORM_INTEGRATION_TOKEN=your_enterprise_token
{" "} <Tip> Use the new streamlined approach to integrate enterprise apps. Simply specify the app and its actions directly in the Agent configuration. </Tip>
from crewai import Agent, Task, Crew
# Create an agent with Gmail capabilities
email_agent = Agent(
role="Email Manager",
goal="Manage and organize email communications",
backstory="An AI assistant specialized in email management and communication.",
apps=['gmail', 'gmail/send_email'] # Using canonical name 'gmail'
)
# Task to send an email
email_task = Task(
description="Draft and send a follow-up email to [email protected] about the project update",
agent=email_agent,
expected_output="Confirmation that email was sent successfully"
)
# Run the task
crew = Crew(
agents=[email_agent],
tasks=[email_task]
)
# Run the crew
crew.kickoff()
from crewai import Agent, Task, Crew
# Create agent with specific Gmail actions only
gmail_agent = Agent(
role="Gmail Manager",
goal="Manage gmail communications and notifications",
backstory="An AI assistant that helps coordinate gmail communications.",
apps=['gmail/fetch_emails'] # Using canonical name with specific action
)
notification_task = Task(
description="Find the email from [email protected]",
agent=gmail_agent,
expected_output="Email found from [email protected]"
)
crew = Crew(
agents=[gmail_agent],
tasks=[notification_task]
)
On a deployed crew, you can specify which actions are available for each integration from the service settings page.
{" "}
<Frame>  </Frame>You can scope each integration to a specific user. For example, a crew that connects to Google can use a specific user’s Gmail account.
{" "} <Tip>Useful when different teams/users must keep data access separated.</Tip>
Use the user_bearer_token to scope authentication to the requesting user. If the user isn’t logged in, the crew won’t use connected integrations. Otherwise it falls back to the default bearer token configured for the deployment.
{" "}
<Frame></Frame>{" "}
<div id="catalog"></div> ### Catalog…and more to come!
</Tab> <Tab title="Internal Tools" icon="toolbox">Create custom tools locally, publish them on CrewAI AMP Tool Repository and use them in your agents.
{" "}
<Tip>
Before running the commands below, make sure you log in to your CrewAI AMP
account by running this command: bash crewai login
</Tip>
{" "}
<Frame>  </Frame>{" "}
<Steps>
<Step title="Create">
Create a new tool locally. bash crewai tool create your-tool
</Step>
<Step title="Publish">
Publish the tool to the CrewAI AMP Tool Repository. bash crewai tool publish
</Step>
<Step title="Install">
Install the tool from the CrewAI AMP Tool Repository. bash crewai tool install your-tool
</Step>
</Steps>
Manage:
{" "}
<Frame></Frame> </Tab> </Tabs>