# Connect your AI agent

Connect Claude, ChatGPT, Codex, Cursor, Zed or Google Antigravity to InvoyForm, then ask in plain words to build a form, publish it or read its responses.

import AgentSteps from '../../../../components/docs/AgentSteps.astro';
import { mcpUrl } from '../../../../data/agents.data';

Connect your AI agent to InvoyForm once, then ask it in plain words: "make a sign-up form for my workshop and publish it", "add a question about dietary needs", "how many people answered this week?". It builds real forms in your workspace, and you can open each one in the builder.

## How it works

1. You add InvoyForm to your agent with this address: <code>{mcpUrl}</code>
2. The agent opens InvoyForm in your browser. Sign in if you are not signed in.
3. You see what the agent asks to do. Untick anything you do not want, then **Allow**. It works in all your workspaces, with your role in each: if you have more than one, it asks you which to use.
4. Ask for what you need. The agent tells you what it made, with a link to it in your dashboard.

You do not need an API key, and nothing is shared until you allow it. See [what your agent can do](https://form.invoy.in/docs/guides/agent-permissions/) for each permission.

## Claude

Works in Claude on the web and in the Claude desktop app.

<AgentSteps id="claude" />

When Claude asks how to sign in, keep **Sign in now** and **Use Claude's published identity**: there is nothing else to fill in.

## Claude Code

<AgentSteps id="claude-code" />

## ChatGPT

<AgentSteps id="chatgpt" />

The client id is public and has no secret: your browser proves the sign-in. `offline_access` keeps ChatGPT signed in between chats.

## Codex

<AgentSteps id="codex" />

## Cursor

<AgentSteps id="cursor" />

Check that Cursor lists the InvoyForm tools under MCP before you ask. Without them, Cursor writes the form as code in your project instead.

## Zed

<AgentSteps id="zed" />

## Google Antigravity

<AgentSteps id="google-antigravity" />

## Coming soon

You will soon add InvoyForm straight from the ChatGPT and Claude app directories, with one click and nothing to paste. Until then, the steps above work today.

## If something goes wrong

- **The agent writes HTML instead of using InvoyForm.** It has no InvoyForm tools yet. Check that InvoyForm is listed and signed in under the app's MCP or connector settings, then ask again.
- **You signed in, but the agent says it cannot do something.** That permission was not ticked. Connect the app again and tick it on the consent screen.
- **You want to change what an agent may do.** InvoyForm remembers what you allowed, so connecting the same agent again does not ask again while it asks for only what you already allowed. To change it, open **Settings**, then **Agents**, click **Disconnect** next to it, then connect it again and untick what you do not want.
- **To stop an agent.** In InvoyForm, open **Settings**, then **Agents**, and click **Disconnect** next to it. It stops at once. Nothing it made is removed. Removing InvoyForm in the agent only makes the agent forget it, so disconnect it here too.
