> For the complete documentation index, see [llms.txt](https://docs.askyazi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.askyazi.com/integrations-and-api/connect-claude-or-chatgpt.md). Agents can also search and read this documentation through its [MCP server](https://docs.askyazi.com/~gitbook/mcp).

# Connect Claude or ChatGPT

Connect Claude or ChatGPT to your Yazi organisation. Ask questions about your studies and results in plain English, and, if you allow it, make changes to your studies.

The Yazi connector lets your own AI assistant (Claude, ChatGPT or Codex) work with your Yazi studies. You can ask "how is completion going on the coffee study?" or "of the people who said they switched banks, what reasons did they give?". It uses MCP (Model Context Protocol), the standard way AI assistants connect to outside tools. You set it up from **Settings > Integrations > Connectors**.

{% hint style="info" %}
**In short:**

* Server address: `https://mcp.askyazi.co/mcp`. It works with claude.ai, Claude Desktop, Claude Code and ChatGPT.
* It can only read your studies unless you allow more when you connect.
* Launching a study and deleting a question always need your confirmation first. It can never delete a study, a participant or a response.
* It only sees the one organisation you connected. You can revoke access at any time.
  {% endhint %}

<figure><img src="https://358667285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzMRQUXiGQlBwWdg6WEmG%2Fuploads%2Fd08oY2LzqZA7ln6Bs0sO%2Ffs-settings-integrations.webp?alt=media&amp;token=d1c43bc0-8ddf-4ffa-8fb7-72ba97f3f0ac" alt="Settings > Integrations: connect Claude or ChatGPT with the MCP server URL, and the Google Sheets and Microsoft Excel connections below"><figcaption></figcaption></figure>

## Before you start

* You need a Yazi login with access to the organisation whose data you want to use. If you cannot see the **Connectors** card, ask an admin in your organisation.
* You need a Claude or ChatGPT account that allows custom connectors or apps. Some company plans let administrators restrict this.
* If your company network filters traffic, `mcp.askyazi.co` may need to be allow-listed. See [Network allow-listing](https://docs.askyazi.com/set-up-whatsapp/network-allow-listing-for-corporate-it.md).

## Set it up

{% tabs %}
{% tab title="claude.ai" %}

1. In Yazi, go to **Settings > Integrations** and click **Open in Claude**. (Or, in Claude, go to **Customize**, then **Connectors**, then **Add**, then **Add custom connector**.)
2. Name it "Yazi", paste `https://mcp.askyazi.co/mcp`, click **Continue**, then **Add**.
3. Click **Connect**, then **Allow access** on the Yazi page that opens. Sign in to Yazi if asked, and choose what the connector may do.
4. Optional but recommended: in the connector's **Tool permissions**, set the read-only tools to **Always allow**, so Claude does not ask before every lookup.
   {% endtab %}

{% tab title="Claude Desktop" %}

1. Follow the steps on the **Claude Desktop** tab in **Settings > Integrations**. In Claude Desktop, add a custom connector.
2. Name it "Yazi" and paste `https://mcp.askyazi.co/mcp`.
3. Click **Connect**, sign in to Yazi in the browser window that opens, choose what the connector may do, and click **Allow access**.
4. Optional: set the read-only tools to **Always allow**.
   {% endtab %}

{% tab title="Claude Code" %}

1. In a terminal, run:

   ```bash
   claude mcp add --transport http yazi https://mcp.askyazi.co/mcp
   ```

   Add `--scope user` to make it available in all your projects.
2. Start Claude Code and run `/mcp`. Select **yazi** and follow the browser sign-in. Choose what the connector may do and click **Allow access**.
3. Check it is connected with `claude mcp list`.

The **Claude Code** tab in **Settings > Integrations** shows the same command, ready to copy.
{% endtab %}

{% tab title="ChatGPT" %}

1. Follow the steps on the **ChatGPT** tab in **Settings > Integrations**. In ChatGPT's settings, add a custom app (connector).
2. Enter the Yazi server address `https://mcp.askyazi.co/mcp`.
3. Sign in to Yazi when asked and choose what the app may do. The sign-in page names the app you are connecting.

Whether you can add custom apps depends on your ChatGPT plan and your workspace settings. Codex connects the same way.

<figure><img src="https://358667285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzMRQUXiGQlBwWdg6WEmG%2Fuploads%2Fv1k2rt7aL1RwYr68vVax%2Fchatgpt-connector.webp?alt=media&amp;token=a695083f-3d85-48ee-9cd7-2c1874d1599d" alt="The Connectors card with the ChatGPT set-up steps"><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

## Permissions

When you connect, Yazi shows a consent page. You choose what the assistant may do. Your role in the organisation can limit what you are able to grant.

| Permission                       | What it allows                                                                                                                                                  | Default   |
| -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| Read your research               | Read studies, results, cross-tabs, participants (phone numbers masked), transcripts and search.                                                                 | Always on |
| Make changes to studies          | Create and edit draft studies, edit reports, and launch, pause, resume or close studies. The assistant asks you before every launch.                            | Off       |
| Delete questions                 | Remove questions from Draft and Testing studies. The assistant asks you before every delete. Organisation admins and owners only.                               | Off       |
| Show participant phone numbers   | Show full phone numbers and stop redacting contact details in answers. Only available if your organisation shows phone numbers internally. Every use is logged. | Off       |
| Include participant demographics | Add de-identified profile data (such as age band, gender and region) to respondent-level answers. Never names or contact details.                               | Off       |

## What it can do

The assistant picks the right tool for your question. You do not need to name tools, but this is the full list.

### Read (always available)

| Tool                      | What it does                                                                                                    |
| ------------------------- | --------------------------------------------------------------------------------------------------------------- |
| Get organisation overview | Summary of your organisation: studies by status, participants, responses and recent activity.                   |
| List studies              | Lists your studies, newest first, with status, type and dates. Filter by status or search by name.              |
| Get study                 | Full details of one study: settings, every question, answer options and routing rules.                          |
| Get study stats           | Fieldwork numbers: invited, started, completed, completion rate, daily responses and data-quality signals.      |
| Get question results      | Answer breakdowns for one question or a whole study, with the base stated. Can be filtered by other answers.    |
| Get cross-tab             | Cross-tabulates two closed questions with a chi-square test. Cells under 5 people are hidden.                   |
| List participants         | Participants in a study, as pseudonyms with masked phone numbers.                                               |
| Get transcript            | One participant's full conversation in a study, with contact details redacted.                                  |
| Search responses          | Searches open answers, messages and voice-note transcripts by keyword.                                          |
| Get responses             | Respondent-level answers, one row per answer or per participant. Demographics need the demographics permission. |
| Export responses to CSV   | Starts a CSV export of one study (up to 50,000 rows).                                                           |
| Get export status         | Checks an export and gives a download link, valid for 15 minutes, when it is ready.                             |
| Get report                | Reads a study's generated report and its layout.                                                                |
| Search report images      | Finds images already used in your organisation's reports.                                                       |

### Change (needs "Make changes to studies")

| Tool                           | What it does                                                                                                        |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------- |
| Create draft study             | Creates a new survey, AI interview or recurring survey as a Draft, optionally with questions or several activities. |
| Rename study or edit objective | Changes a study's name, description or objective.                                                                   |
| Change study type              | Switches a Draft or Testing study between survey, AI interview and recurring survey.                                |
| Pause, resume or close study   | Pauses a Live study, resumes a Paused one, or closes a study. Studies are never deleted.                            |
| Launch study                   | Makes a Draft or Testing study Live. Always two steps: you see a summary and confirm.                               |
| Add question                   | Adds one question to the end of a Draft or Testing study.                                                           |
| Add questions                  | Adds up to 50 questions in one go. If any is invalid, none are added.                                               |
| Update question                | Edits a question's text, options or type in a Draft or Testing study.                                               |
| Reorder questions              | Sets a new question order. Refused if the order would break the study.                                              |
| Set question logic             | Sets routing: jump to a question, screen out or end the survey based on an answer.                                  |
| Set question entry condition   | Sets "Only show if" so a question is asked only when earlier answers match.                                         |
| Set answer piping              | Inserts an earlier answer, or the participant's WhatsApp name, into a later question.                               |
| Set question translations      | Saves your own translations for questions in a language the study already has.                                      |
| Set question defaults          | Turns Back button, Optional and Shuffle options on or off across a study.                                           |
| Update study settings          | Changes settings such as completion message, response checks and quota target.                                      |
| Get image upload link          | Gives you a link to upload images to a question in Yazi.                                                            |
| Edit report                    | Rewrites sections, adds or removes blocks, and changes report layout or branding.                                   |
| Compute report metric          | Calculates a figure from a study's answers for a report callout.                                                    |
| Import image from URL          | Copies an image from a public web address into your report storage.                                                 |

### Delete (needs "Delete questions")

| Tool            | What it does                                                                                                |
| --------------- | ----------------------------------------------------------------------------------------------------------- |
| Delete question | Deletes one question from a Draft or Testing study. Always two steps: you see what will change and confirm. |

{% hint style="info" %}
**Don't see a tool?** Change tools only appear if you ticked **Make changes to studies** when you connected. **Delete question** only appears with **Delete questions**. **Launch study** also needs a connection made on or after 9 November 2026. To fix any of these, remove the connection and connect again, ticking the permission you need.
{% endhint %}

## Confirmed actions

Some actions always take two steps, so nothing happens by accident:

* **Launch study** and **Delete question**: the first call changes nothing. It returns a summary of what will happen and a one-time code. The assistant shows you the summary. Only when you agree does it send the code to do the action. The code works once and expires after 10 minutes.
* **Changes to Live or Paused studies** (logic, entry conditions, piping, translations, settings, report edits and image uploads) work the same way.
* **Edits that would remove routing rules** also ask first.

What it can never do, under any permission:

* Delete a study, participant, response or message.
* Send broadcasts or message participants.
* See another organisation's data.

## Your data and AI

* **The assistant you connect is your own provider.** Whatever the connector returns goes to Claude (Anthropic) or ChatGPT (OpenAI) under your own agreement with that provider. Check your company's AI policy before connecting.
* **Yazi's own AI is separate.** Yazi's built-in AI features run on Amazon Bedrock inside Yazi's own AWS account, in the UK and EU only. See [AI and your data](https://docs.askyazi.com/security-and-privacy/ai-and-your-data).
* **Participants are pseudonyms.** Each participant is a stable code (for example `p_...`) that cannot be reversed into a phone number or name. Names are never returned.
* **Contact details are hidden by default.** Phone numbers show only the country code and last three digits. Phone numbers, emails and ID numbers typed into answers are redacted. Both change only with the phone number permission.
* **Participant text is treated as data.** Answers are labelled as participant content, so text a participant typed cannot steer the assistant.
* **Audited and rate limited.** Every call is recorded in Yazi's audit trail (identifiers only, never the text), and use is rate limited.
* **No selling, no training.** Yazi does not sell connector data or use it to train AI models.

What Yazi stores for the connector: the AI apps that have connected, a one-way hash of each access token (valid 1 hour) and refresh token (valid 30 days), each connection's permissions, and the audit log. See the [Privacy Policy](https://www.askyazi.com/privacy-policy).

## Revoke access

* **In Yazi:** go to **Settings > Integrations > Connectors > Manage connections** and remove the connection. Access stops straight away.
* **In Claude or ChatGPT:** remove the Yazi connector or app from your settings.

## Troubleshooting

| What you see                                               | What it means and what to do                                                                                                                                       |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| "The Claude connector is disabled for this organisation"   | The connector is switched off for your organisation. Ask Yazi support to turn it on.                                                                               |
| "AI is switched off for this organisation" (`ai_disabled`) | Your organisation has turned AI off, so the connector cannot be used. An admin can turn AI back on in Settings. Your connection works again within a minute or so. |
| A tool is missing                                          | See **Don't see a tool?** above. Reconnect and tick the permission.                                                                                                |
| "Reconnecting will not help"                               | Your role in the organisation does not allow that permission. Ask an admin.                                                                                        |
| New tools do not show up                                   | Disconnect and reconnect the connector in Claude or ChatGPT to refresh its tool list.                                                                              |
| A sign-in page says the request expired                    | The sign-in took too long or was already used. Start connecting again from your assistant.                                                                         |

## Limits and things to know

* **Answers depend on the assistant.** The connector returns accurate data, but the assistant writes the summary. Check any number that matters in Yazi.
* **Rate limits.** Large requests are paged. Exports are limited to 2 at a time per organisation and 5 export calls a minute.
* **Open text is cut** at 2,000 characters per answer.
* **Questions are fixed once a study is Live.** Add, edit and delete questions while it is in Draft or Testing.

## Get help

Something not working? See [Get help](https://docs.askyazi.com/help/get-help) or email **<hello@askyazi.com>** with "Connector" in the subject.

## Related

* [AI and your data](https://docs.askyazi.com/security-and-privacy/ai-and-your-data)
* [Ask Yazi](https://docs.askyazi.com/build-a-study/ask-yazi) (the assistant inside the Yazi app)
* [Analysis limits](https://docs.askyazi.com/results-and-reporting/analysis-limits)
* [Exports](https://docs.askyazi.com/results-and-reporting/exports)
