# Connect and attach an integration (/docs/integrations/connect-and-attach)

> Step by step: pick a connector, connect it, verify and enable its capabilities, attach it to an agent, then test it in Test chat.

Type: how-to | Status: ga | Last reviewed: 2026-11-21 | Minimum role: builder

This page walks through the whole path once, for any connector. Each connector's own guide lists its exact fields.

You need the **Builder** role or higher.

## How do I connect a tool to my AI agent? [#how-do-i-connect-a-tool-to-my-ai-agent]

Select Integrations, then Add integration, and pick a connector. Connect it, then verify and enable the capabilities the agent may use. Attach the integration to your agent and try it in Test chat. You need the Builder role or higher for each of these steps.

## Steps [#steps]

<Steps>
<Step>

### Pick a connector [#pick-a-connector]

Select **Integrations**, then **Add integration**. Search ("Search connectors…") or filter by **All**, **Available** and **Coming soon**, and by category: Custom, Commerce, Payments, Messaging, CRM, Email, Scheduling, Google, Microsoft or ITSM. Coming soon connectors are greyed out and cannot be chosen.

</Step>
<Step>

### Connect it [#connect-it]

See the connector's guide: [REST APIs](/docs/integrations/rest-apis), [MCP servers](/docs/integrations/mcp-servers), [Shopify](/docs/integrations/shopify), [Stripe](/docs/integrations/stripe), [Slack](/docs/integrations/slack), [Gmail](/docs/integrations/gmail), [Calendly](/docs/integrations/calendly), [Google Sheets](/docs/integrations/google-sheets).

Some use a sign-in (OAuth), some a token or key. You see a message such as **Shopify connected** when it works. Use a **test** account or test mode while you build.

</Step>
<Step>

### Test the connection [#test-the-connection]

Select **Test connection**. You should see **Connection established**. If you see **Connection failed**, check [Troubleshooting](/docs/integrations/troubleshooting).

</Step>
<Step>

### Verify the capabilities [#verify-the-capabilities]

Select **Verify capabilities** and start the verification. Passed capabilities become **Approved**. Capabilities that need attention show what to fix. For Gmail, Slack and Sheets the verify dialog tells you what it will do.

</Step>
<Step>

### Check the trust level [#check-the-trust-level]

In the capability table, look at the **Trust** column. Raise it where a capability exposes customer-specific data. See [How integrations work](/docs/integrations/how-integrations-work).

</Step>
<Step>

### Enable what the agent may use [#enable-what-the-agent-may-use]

Turn on **Enable** only for the capabilities this workspace should use. "Agents pick from enabled tools only." Think twice before enabling **Actions**.

</Step>
<Step>

### Attach it to an agent [#attach-it-to-an-agent]

Open the agent, go to **Integrations**, choose **Add integration**, pick the connection and tick the capabilities. Describe "When should this agent use" each one so the agent knows when to call it. Select **Save draft**, then **Publish**. Full steps: [Attach integrations](/docs/agents/attach-integrations).

</Step>
<Step>

### Try it in Test chat [#try-it-in-test-chat]

Open **Test chat**, ask a real question that needs the integration, and switch on **Show agent thinking process** to see the call. If the capability needs a verified customer, test as a verified customer. See [Test your agent](/docs/agents/test-your-agent).

</Step>
</Steps>

## Where each setting lives [#where-each-setting-lives]

| Setting | Where |
|---|---|
| Credentials, display name | The connection page |
| Approved, Enable, Trust | The connection's capability table |
| Which capabilities an agent may use | The agent's **Integrations** section |
| "When should this agent use" | The agent's **Integrations** section |

## Removing or replacing [#removing-or-replacing]

Use the **Actions** menu on a row to **Disconnect** a connected app, or **Delete** a custom API. Detach it from agents first. Otherwise those agents lose the capability on their next publish. Deleting a custom API asks you to confirm ("Delete source?"); disconnecting asks "Disconnect integration?".

## Rotating a credential [#rotating-a-credential]

Open the connection and enter a new value in the secret field. Leave it blank to keep the current one. Then **Test connection**.
