Connect your AI assistant
Who this is for: people who want their AI assistant to create, test and fix workflows in Liitora.
Before you start: you need the address of your Liitora MCP server, for example https://mcp.liitora.example/mcp. The app shows it, with the commands below filled in, under Connect, then Connect your AI (see Page: Connect your AI). For Claude Code, or another client that sends a token, you also need a Liitora API token that may do more than read, for example one that may also Create and change workflow drafts. Only admins can create API tokens: see Create API tokens.
Liitora works with any assistant that supports remote MCP servers (the Model Context Protocol) over HTTP. The assistant sends your token in an Authorization: Bearer header with every request. The token gives it access to one company only.
To use Claude.ai or ChatGPT, which sign in instead of sending a token, see Connect Claude or ChatGPT. Codex can sign in too: see Codex below.
Pick what the token may do
Section titled “Pick what the token may do”Under What the token may do, keep the reading permissions that are ticked to start with, and tick what you want the assistant to do as well:
| So that the assistant can | Tick |
|---|---|
| Look at workflows, runs, connections and secret names | the reading permissions (ticked to start with) |
| Create and change drafts, run their tests and try them in the test environment | Create and change workflow drafts and See runs and their results |
| Set up connections | Manage connections |
| Ask a person for a secret | Create and change workflow drafts (the assistant never sees or sets the value) |
| Create webhook endpoints | Manage webhooks |
| Switch on and pause workflows that a person approved | Start, pause and switch on approved workflows |
Without a permission, the tool that needs it answers forbidden and names the missing permission. No token can approve a workflow: a person always does that. No token, and no person, can show a saved secret value.
Claude Code
Section titled “Claude Code”-
Open a terminal.
-
Run this command, with your MCP address and your token:
Terminal window claude mcp add --transport http liitora https://mcp.liitora.example/mcp \--header "Authorization: Bearer liitora_your_token_here" -
Start Claude Code and run
/mcpto check that liitora is connected. -
Ask: “Ping Liitora.”
The Codex command line, the Codex IDE extension and the Codex app share their settings, so you add Liitora once for all three. The quickest way signs in with your Liitora account, so you need no token:
-
Open a terminal.
-
Run these two commands, with your MCP address. The Connect your AI page has them with your address filled in:
Terminal window codex mcp add liitora --url https://mcp.liitora.example/mcpcodex mcp login liitora -
Your browser opens the Liitora sign-in page. Sign in and select Yes to allow access.
-
Ask Codex: “Ping Liitora.”
To use an API token instead, put the token in the LIITORA_API_TOKEN environment variable and run the command below. Codex reads the token from the variable, so it is never written in Codex’s settings.
codex mcp add liitora --url https://mcp.liitora.example/mcp --bearer-token-env-var LIITORA_API_TOKENGitHub Copilot in VS Code
Section titled “GitHub Copilot in VS Code”The quickest way: select Install in VS Code on the Connect your AI page. VS Code adds the server and asks you to sign in with your Liitora account, so you need no token. To use an API token instead:
-
In your project, create the file
.vscode/mcp.json. -
Paste this, with your MCP address. VS Code asks for the token the first time and stores it for you, so the token is never written in the file:
{"inputs": [{"type": "promptString","id": "liitora-token","description": "Liitora API token","password": true}],"servers": {"liitora": {"type": "http","url": "https://mcp.liitora.example/mcp","headers": { "Authorization": "Bearer ${input:liitora-token}" }}}} -
Select Start above the
liitoraserver in the file, and paste the token when VS Code asks. -
Open Copilot Chat in agent mode, check that the Liitora tools are selected, and ask: “Which Liitora workflows failed this week?”
Other MCP clients
Section titled “Other MCP clients”Any client that can call a streamable HTTP MCP server with a custom header works. Use the MCP address as the server URL and add the header Authorization: Bearer <your token>.
An AI assistant client for your company
Section titled “An AI assistant client for your company”If you prefer that your assistant signs in as its own identity instead of with a person’s API token, we can set up an AI assistant client for your company. It has the AI assistant role: it builds and tests workflows, but never approves, never sees secret values and can’t manage members. Use Report a problem in the user menu (top right) in the app.
The assistant asks before it builds
Section titled “The assistant asks before it builds”The assistant works like an integration architect. Before it builds anything, it asks how familiar you are with integrations:
- New to this: you know what the business needs, not the technical side. The assistant asks about your work in plain words, explains any technical term it uses and suggests a safe choice when you are not sure.
- Some experience: you have set up integrations before. The assistant uses common terms such as schedule, webhook and API key.
- Technical: you know APIs and authentication. The assistant asks short, precise questions, for example about endpoints, authentication and rate limits.
It starts by saying back in one sentence what it understood, so you can correct it early. Then it asks up to three questions at a time, often with a suggested answer you can accept. It asks about what you do by hand today, how it can tell two records are the same (for example the order number), whether existing records should move too or only new ones, what happens when something is cancelled, who should hear when something fails, and which personal data moves. It looks up what is already connected in your company instead of asking you.
It recommends the simplest option that does the job and points out risks, such as duplicates or more personal data than needed. If something has to be found out first, for example from your IT contractor or the other system’s vendor, it notes it in the plan with a suggested answer and can write a short message for you to forward.
Before it creates anything, it writes the plan back to you in plain words: what will happen, what you will see when it works and when it fails, the choices it made for you and what it will not do. It builds only after you confirm the plan, and you can correct it first. When it asks for an example of your data, give one with made-up values, not real customer data.
The confirmed plan is saved with the workflow. Liitora refuses a save from the assistant that comes without it, and every later change brings an updated plan or says the plan still fits. You can read and change the plan on the workflow’s Plan tab, and the approver sees it next to the version. See Plan.
Questions about existing workflows, such as why a run failed, get a direct answer without these questions.
To start this way on purpose, pick the design-integration prompt in your client, or describe in your own words what you want to achieve.
An assistant that can run subagents, such as Claude Code, can hand parts of a big build to them, so your conversation stays on your decisions and the plan. See Split a big build across subagents.
What the assistant can and cannot do
Section titled “What the assistant can and cannot do”- It can search the actions, draft workflows with tests, validate them, run tests and test runs, read logs and explain failures.
- It asks you for credentials with a secure link. You type the value in Liitora, never in the chat, and the assistant never sees it.
- It can’t approve a workflow. A person approves every new version through the Approve & activate link the assistant shows you.
- It can’t turn on a workflow that needs approval, even when it uses your own sign-in. You turn it on with the same link.
- It can’t save a script with a password, key or token typed into it. It asks you to store the value as a secret instead.
- With your own sign-in (Claude.ai or ChatGPT), the assistant’s work counts as the assistant’s, so you may review and approve it yourself. With your API token, its work counts as yours, so someone else approves it, unless you are the only approver and confirm. The assistant itself never approves.
- Every change it makes is in the audit log, marked as made by an API token or an AI assistant.
The assistant also gets five guided flows (MCP prompts): design-integration, new-scheduled-report, new-webhook-automation, fix-failing-workflow and explain-workflow. In clients that show prompts, pick one to start.
If a tool call fails, the assistant gets a message that says what went wrong and how to fix it. The MCP tools reference lists every tool.
If it doesn’t connect
Section titled “If it doesn’t connect”- 401 or “unauthorized”: the token is wrong, revoked or expired, or it is missing the
Bearerprefix. See unauthorized. - The assistant can read but not save: the token is read-only. Create a new one with Read-only turned off.
- “forbidden”: the person who created the token doesn’t have the permission the tool needs. See forbidden.