> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/get-started/quickstart.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Quickstart: your first integration

Build and test your first integration from your AI tool. About five minutes, no code.

### Overview

In this quickstart, your AI tool builds an integration that posts each new HubSpot contact to a Slack channel. Then you test it without touching real data. It takes about five minutes and needs no code.

You will:

1. [Connect your AI tool to Fastn](#step-1-connect-your-ai-tool-to-fastn).
2. [Describe the integration](#step-2-describe-the-integration).
3. [Connect HubSpot and Slack](#step-3-connect-hubspot-and-slack).
4. [Answer the agent's questions](#step-4-answer-the-agents-questions).
5. [Find the workflow the agent built](#step-5-find-the-workflow-the-agent-built).
6. [Run a test without touching real data](#step-6-run-a-test-without-touching-real-data).

This quickstart is for anyone on your team who builds integrations. It helps to know what [connectors and workflows](https://docs.fastn.ai/get-started/concepts.md) are, but you don't need to.

### Before you start

* **A Fastn account.** Sign up at [app.fastn.dev](https://app.fastn.dev/?signup=1). The free Launch plan is enough.
* **An AI tool that supports MCP,** such as Claude, Cursor or VS Code.
* **A HubSpot account and a Slack workspace** you can sign in to.

### Step 1: Connect your AI tool to Fastn

Your AI tool builds the integration through the Fastn MCP server, a connection that gives it Fastn's tools.

1. In the Fastn dashboard, click **Connect your AI tool** in the top bar.
2. Choose your AI tool and follow the steps shown for it.
3. Sign in with your Fastn account when your AI tool asks. No API key is needed.
4. In Claude, open a new chat, click **+** → **Connectors**, and make sure **fastn** is switched on. Claude can't use Fastn's tools in a chat where it's off.

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-d613f6dfacec849d9ec270b94318744c088dc689%2Fconnect-your-ai-tool.webp?alt=media" alt="The Connect your AI tool dialog: Claude recommended with Add to Claude, tiles for other AI tools, the MCP server URL https://mcp.fastn.dev/fastn-workspace with Copy, and OAuth 2.0 sign-in with no API key"><figcaption><p>The <strong>Connect your AI tool</strong> dialog.</p></figcaption></figure>

**You should see:** Fastn's tools listed in your AI tool. In Claude, **fastn** is switched on under **+** → **Connectors**.

### Step 2: Describe the integration

Open a new chat in your AI tool and send this message:

> Using Fastn, when a new contact is created in HubSpot, post their name and email in our #sales Slack channel.

**You should see:** the agent finds HubSpot and Slack in Fastn, and gives you a link to connect them. In Claude, the link may open as a panel in the chat.

### Step 3: Connect HubSpot and Slack

The agent builds and tests on sandbox connections, so it never touches your live accounts while it works. You connect both apps on one page.

1. Open the link, or use the panel.

   **You should see:** a preview of a widget with HubSpot and Slack. The agent created it for this integration, as a draft your customers can't see.
2. For each app, click **Connect**. Keep **Environment** set to **Sandbox**, sign in to the app, and approve access.

   Sandbox connections are free up to your plan's allowance, and are deleted after 7 days.

Never paste passwords or API keys into the chat.

**You should see:** the agent confirms that both apps are connected.

### Step 4: Answer the agent's questions

The agent asks only what it can't work out itself, in one set of questions, with its recommended answer already selected.

1. When it asks whether the integration is for **yourself**, on your own accounts, or for **your customers**, on their accounts, choose yourself. This quickstart posts to your own Slack channel.

   Either way, the agent builds the integration into the widget from step 3. Your answer decides whose accounts the integration uses:

   | Answer             | Whose accounts it uses                                  | When to choose it                                                                                                                    |
   | ------------------ | ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
   | For yourself       | The accounts you connected in step 3                    | An automation for your own team, like this one                                                                                       |
   | For your customers | Each customer connects their own accounts in the widget | An integration you offer in your product. See [Embedding quickstart](https://docs.fastn.ai/embed/embedding/embedding-quickstart.md). |
2. Answer any other questions, or keep the recommended answers.
3. If the agent asks you to approve the field mappings or the test cases, review them and approve.

**You should see:** the agent writes the workflow, runs its test cases, and says when it's done.

### Step 5: Find the workflow the agent built

Open **Build → Integrations → Workflows** ([Open in Fastn](https://app.fastn.dev/integrations?tab=workflows)) and click the new workflow.

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-b88cc3edace9ae0e3fae8ad31b49d3763435a0ef%2Fworkflow-code-and-test-cases.png?alt=media" alt="A workflow open in the editor: its JavaScript code in the middle, and the Test cases tab on the right listing 9 test cases, all passing, grouped as happy-path, edge-cases, failure, idempotency, ambiguity-review and trigger-fire"><figcaption><p>The workflow's code, with its test cases on the <strong>Test cases</strong> tab.</p></figcaption></figure>

**You should see:** the workflow's code, with its test cases listed.

### Step 6: Run a test without touching real data

A **Fully Mock** run uses stored sample responses instead of calling HubSpot and Slack, so nothing is written to either app.

1. Click the **Test** tab.
2. Click **Use contract** to fill in a sample input.
3. In the list next to the run button, select **Fully Mock**.
4. Click **Run Fully Mock**.

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-365b649a9dd48bb348c075c50e92aeb4bed1cde0%2Fworkflow-test-fully-mock.png?alt=media" alt="The Test tab with Use contract, the mode set to Fully Mock and the Run Fully Mock button. Below, a sample ctx.input, then the run summary (1 step, 1 OK, 0 errors) and the Output tab marked FULLY MOCK and OK"><figcaption><p>A <strong>Fully Mock</strong> run: the sample input at the top, the result below.</p></figcaption></figure>

**You should see:** the run's output, with each step and its result.

You've built and tested your first integration. Along the way, the agent also published the workflow, added the trigger that starts it when a contact is created, and attached both to the widget from step 3. Its last message tells you how to open that widget.

The field mappings you approved in step 4 are saved with the widget, not written into the workflow's code. To change them later, such as which Slack channel it posts to, open the widget under **Embed → Widget**, or ask the agent.

Nothing goes live for your customers until you deploy it.

### Next steps

* [Test and release](https://docs.fastn.ai/build/lifecycle.md): deploy the workflow to Live.
* [Triggers](https://docs.fastn.ai/build/integrations/triggers.md): how the trigger the agent added starts each run.
* [Embedding quickstart](https://docs.fastn.ai/embed/embedding/embedding-quickstart.md): offer the integration to your customers inside your product.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/get-started/quickstart.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
