---
canonical_url: "https://docs.composio.dev/toolkits/wonderchat_mcp"
markdown_url: "https://docs.composio.dev/toolkits/wonderchat_mcp.md"
product: "platform"
version: null
last_updated: null
---

# Wonderchat MCP

Create and configure Wonderchat AI agents, manage their knowledge base, review chat logs, work the ticket inbox, manage contacts and companies, and read analytics, sales ROI and A/B test results through Wonderchat's hosted MCP server.

- **Category:** model context protocol
- **Auth:** DCR_OAUTH
- **Composio-managed OAuth available?** No
- **Tools:** 122
- **Triggers:** 0
- **Slug:** `WONDERCHAT_MCP`
- **Version:** 00000000_00

## Tools

### Accept review proposal

**Slug:** `WONDERCHAT_MCP_ACCEPT_REVIEW_PROPOSAL`

Apply the AI-suggested fix for a review item (e.g. add a retrieval hint or flag a conflict). Writes an audit row.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `reviewItemId` | string | Yes |  |

### Add company domain

**Slug:** `WONDERCHAT_MCP_ADD_COMPANY_DOMAIN`

Add an email domain to a company; contacts on that domain who aren't in a company yet join it (attached says how many). Free email domains like gmail.com are rejected.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `domain` | string | Yes |  |
| `agentId` | string | Yes |  |
| `companyId` | string | Yes |  |

### Add contact identity

**Slug:** `WONDERCHAT_MCP_ADD_CONTACT_IDENTITY`

Attach another email or phone number to a contact. Fails with CONFLICT if another contact already has it; merge_contacts them instead.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `type` | string ("EMAIL" | "PHONE") | Yes |  |
| `value` | string | Yes |  |
| `agentId` | string | Yes |  |
| `contactId` | string | Yes |  |

### Add correction

**Slug:** `WONDERCHAT_MCP_ADD_CORRECTION`

Teach the agent an authoritative answer: when asked something like `question`, answer `answer`. Stored as a correction in the knowledge base. correctionType EXACT matches close paraphrases; GENERAL applies more broadly.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `answer` | string | Yes |  |
| `agentId` | string | Yes |  |
| `question` | string | Yes |  |
| `sourceUrl` | string | No |  |
| `correctionType` | string ("EXACT" | "GENERAL") | No |  |
| `knowledgeBaseId` | string | No |  |

### Add faq

**Slug:** `WONDERCHAT_MCP_ADD_FAQ`

Add a proactive FAQ the agent should always know: a question and its answer. Stored as a general correction in the knowledge base. Use this for canonical Q&A; use add_correction to fix a specific wrong answer.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `answer` | string | Yes |  |
| `agentId` | string | Yes |  |
| `question` | string | Yes |  |
| `knowledgeBaseId` | string | No |  |

### Add knowledge file

**Slug:** `WONDERCHAT_MCP_ADD_KNOWLEDGE_FILE`

Upload a document (PDF, Word, Excel, PowerPoint, Markdown, text, CSV, JSON, images, audio/video) into the agent's knowledge base, e.g. docs from the user's repo. Upload the file with create_upload and pass its uploadId (preferred), or for a tiny file pass its bytes base64-encoded in contentBase64; max 10 MB either way. fileName must include the extension. Indexing is asynchronous; check get_setup_status. For a file already public on the web use add_knowledge_url instead.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `fileName` | string | Yes |  |
| `uploadId` | string | No | From create_upload, after the file was PUT to its uploadUrl. |
| `contentBase64` | string | No |  |
| `knowledgeBaseId` | string | No |  |

### Add knowledge text

**Slug:** `WONDERCHAT_MCP_ADD_KNOWLEDGE_TEXT`

Add a free-text snippet (title + body) to the agent's knowledge base. Use for facts, policies, or answers not on a web page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | string | Yes |  |
| `title` | string | Yes |  |
| `agentId` | string | Yes |  |
| `knowledgeBaseId` | string | No |  |

### Add knowledge url

**Slug:** `WONDERCHAT_MCP_ADD_KNOWLEDGE_URL`

Crawl and index a URL into the agent's knowledge base. crawlScope PAGE_ONLY (default) indexes just that page; SUBDIR_ONLY the sub-path; ALL_SITE the whole site; SITEMAP its sitemap. Crawling is asynchronous.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes |  |
| `agentId` | string | Yes |  |
| `crawlScope` | string ("PAGE_ONLY" | "SUBDIR_ONLY" | "ALL_SITE" | "SITEMAP") | No |  |
| `knowledgeBaseId` | string | No |  |

### Add ticket note

**Slug:** `WONDERCHAT_MCP_ADD_TICKET_NOTE`

Add an internal note to a ticket (Markdown). Teammates see it; the customer and the AI never do. mentionUserIds (from list_ticket_assignees) notifies those teammates. Images are shown inline at the end of the note: upload each with create_upload and pass it in uploads (base64 images also work for tiny ones). Notes take images only, not file attachments.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `note` | string | Yes |  |
| `images` | array | No | Images to show inline in the note, as base64 (a data: URI prefix is fine). Max 10, 5 MB each. Prefer uploads: base64 only suits tiny images. |
| `agentId` | string | Yes |  |
| `uploads` | array | No | Preferred way to add images: upload each with create_upload, then pass { uploadId } here. Every upload is shown inline, so each must be an image. Max 20. |
| `ticketId` | string | Yes |  |
| `mentionUserIds` | array | No |  |

### Archive chatlogs

**Slug:** `WONDERCHAT_MCP_ARCHIVE_CHATLOGS`

Soft-archive (or unarchive with archive=false) one or more conversations. Reversible.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `archive` | boolean | No |  |
| `chatlogIds` | array | Yes |  |

### Ask

**Slug:** `WONDERCHAT_MCP_ASK`

Ask the agent a question and get the answer it would give, without saving a conversation. Runs the real model and retrieval, so it consumes the owner's message credits like a normal chat message (fails cleanly if the owner is out of quota).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `question` | string | Yes |  |

### Boost conflict source

**Slug:** `WONDERCHAT_MCP_BOOST_CONFLICT_SOURCE`

Resolve a KNOWLEDGE_CONFLICT review item by choosing which of the conflicting chunks is authoritative (keepEmbeddingId).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `reviewItemId` | string | Yes |  |
| `keepEmbeddingId` | string | Yes |  |

### Close tickets

**Slug:** `WONDERCHAT_MCP_CLOSE_TICKETS`

Close (resolve) one or more tickets. Followers are notified. A customer reply reopens a closed ticket automatically; reopen_ticket does it by hand.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `ticketIds` | array | Yes |  |

### Count review items

**Slug:** `WONDERCHAT_MCP_COUNT_REVIEW_ITEMS`

Return counts of review items by status and by failure mode for an agent — the shape of the queue.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |

### Count tickets

**Slug:** `WONDERCHAT_MCP_COUNT_TICKETS`

Inbox tab counts for an agent: open (no reply yet), onUs, onCustomer, customerReplied (of onUs, how many the customer wrote back on), closed. customStates: open tickets per team-defined state; parked: how many of open/onUs/onCustomer sit in one. Optional assignee/team filters as in list_tickets.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `team` | string | No |  |
| `agentId` | string | Yes |  |
| `assignee` | string | No |  |

### Create ab test

**Slug:** `WONDERCHAT_MCP_CREATE_AB_TEST`

Creates a draft test with Control and Variant B, where B starts as an exact copy of the agent. Change B with update_ab_test_variant, then start_ab_test. An agent has one draft or running test at a time.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes |  |
| `agentId` | string | Yes |  |
| `variantName` | string | No | Variant B's name, e.g. "Short answers" (default "Variant B"). |
| `primaryMetric` | string | Yes | What decides the winner. Per website visit: leadCaptured, meetingBooked, formSubmitted, hotLead, workflowConverted, conversationStarted. Per graded conversation: resolved (resolution rate, resolved ÷ resolved + unresolved, like Analytics). Or one of the agent's custom outcomes, per visit, as "outcome:<id>" (ids from list_sales_outcomes). |
| `controlPercent` | integer | No | Control's share of visitors, 10-90 (default 50). Variant B gets the rest. An even split gets an answer fastest. |

### Create agent

**Slug:** `WONDERCHAT_MCP_CREATE_AGENT`

Create a new customer-facing AI agent and start training it. Give a websiteUrl to crawl (crawlScope ALL_SITE by default, SUBDIR_ONLY for a docs sub-path, SITEMAP for a sitemap URL, PAGE_ONLY for one page) and/or texts (e.g. README or docs content). Training runs in the background: poll get_setup_status until state is ENABLED, then tune it with update_model_and_behavior (write a systemPrompt describing the business, tone and what to hand off) and update_profile_and_widget. workspaceId: a workspace from list_workspaces, or "PERSONAL"; when omitted, the space the user last worked in (usually their team). Fails with the plan's agent limit if the account is full.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes |  |
| `texts` | array | No |  |
| `language` | string | No |  |
| `colorTheme` | string | No |  |
| `crawlScope` | string ("ALL_SITE" | "SUBDIR_ONLY" | "PAGE_ONLY" | "SITEMAP") | No |  |
| `websiteUrl` | string | No |  |
| `workspaceId` | string | No |  |

### Create company

**Slug:** `WONDERCHAT_MCP_CREATE_COMPANY`

Create a company on the agent's account. Contacts with an email on one of its domains who aren't in a company yet join it. Free email domains like gmail.com are rejected. scopeId is only needed if the agent's account is ambiguous.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes |  |
| `agentId` | string | Yes |  |
| `domains` | array | No |  |
| `scopeId` | string | No |  |
| `website` | string | No |  |

### Create ticket

**Slug:** `WONDERCHAT_MCP_CREATE_TICKET`

Start a new ticket by emailing a customer. connectionId picks the sending mailbox from list_ticket_senders (null = the agent's Wonderchat address). Images and files: upload each with create_upload and pass them in uploads (inline: true shows an image inline, otherwise it's attached); base64 images/files also work for tiny ones. Their reply lands back on this ticket. sourceChatlogId: the chat log this email follows up on (e.g. from draft_chatlog_follow_up); it gets an internal note linking to the new ticket. Reaches a real person: confirm with the user first.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `cc` | array | No |  |
| `files` | array | No | Files to attach to the email (any type, e.g. a spreadsheet or PDF), as base64. 8 MB total, uploads included. Prefer uploads: base64 only suits tiny files. |
| `images` | array | No | Images to show inline in the email, as base64 (a data: URI prefix is fine). Max 10, 5 MB each. Prefer uploads: base64 only suits tiny images. |
| `teamId` | string | No |  |
| `toName` | string | No |  |
| `agentId` | string | Yes |  |
| `message` | string | Yes |  |
| `subject` | string | Yes |  |
| `toEmail` | string | Yes |  |
| `uploads` | array | No | Preferred way to add images and files: upload each with create_upload, then pass { uploadId } here. inline: true shows an image inline; otherwise the file is attached. Max 20. |
| `assigneeId` | string | No |  |
| `connectionId` | string | No |  |
| `sourceChatlogId` | string | No |  |

### Create upload

**Slug:** `WONDERCHAT_MCP_CREATE_UPLOAD`

Get a URL to upload a file's raw bytes to, so a file or image never has to be sent as base64 inside a tool call. Returns uploadUrl, uploadId and a ready curl command: run it with the file's path (it must send exactly `size` bytes with the given Content-Type), then pass the uploadId in `uploads` on save_ticket_draft, send_ticket_reply, create_ticket or add_ticket_note ({ uploadId, inline: true } shows an image inline, otherwise it is attached as a file), or as uploadId on add_knowledge_file. The uploadUrl works for 15 minutes; the uploadId for an hour, on this agent and for this user or key only, and can be reused within that time. Max 10 MB per file (inline images 5 MB, email attachments 8 MB in total).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `size` | integer | Yes | Exact size of the file in bytes, e.g. from `wc -c < file`. |
| `agentId` | string | Yes |  |
| `fileName` | string | Yes |  |
| `contentType` | string | No | MIME type, e.g. image/png. Defaults to the type of the file name's extension. |

### Debug retrieval

**Slug:** `WONDERCHAT_MCP_DEBUG_RETRIEVAL`

Diagnostic view of retrieval for a query: the faithful ranked result PLUS a pure vector-distance top-N with real similarity scores. Separates 'the content isn't retrievable at all' from 'the strategy buried it'. No answer is generated, so no message credits are used.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `query` | string | Yes |  |
| `agentId` | string | Yes |  |
| `knowledgeBaseId` | string | No | For an agent with several knowledge bases (e.g. one per product version): which one to search, as a visitor who picked it would. Omitted: the default one. The common knowledge base is always included. |

### Delete company

**Slug:** `WONDERCHAT_MCP_DELETE_COMPANY`

Delete a company. Its contacts are kept but no longer belong to it. Not reversible, and needs admin rights on the account. Confirm with the user first.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `companyId` | string | Yes |  |

### Delete contact

**Slug:** `WONDERCHAT_MCP_DELETE_CONTACT`

Erase a person (GDPR): deletes the contact and clears their name, email, phone and other details from every one of their conversations. Not reversible, and needs admin rights on the account. Confirm with the user first.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `contactId` | string | Yes |  |

### Delete knowledge source

**Slug:** `WONDERCHAT_MCP_DELETE_KNOWLEDGE_SOURCE`

Remove a source from the agent's knowledge base. kind=page + id=<url> deletes a crawled page; kind=file + id=<file name> (fileSource FILE or GOOGLE_DRIVE) deletes a file; kind=text + id=<snippet id> deletes a text snippet. Get ids from list_knowledge_sources.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes |  |
| `kind` | string ("page" | "file" | "text") | Yes |  |
| `agentId` | string | Yes |  |
| `fileSource` | string ("FILE" | "GOOGLE_DRIVE") | No |  |

### Delete sales funnel

**Slug:** `WONDERCHAT_MCP_DELETE_SALES_FUNNEL`

Deletes one of an agent's custom Sales ROI funnels for the whole team. Conversations and workflow data are untouched.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `funnelId` | string | Yes |  |

### Delete sales outcome

**Slug:** `WONDERCHAT_MCP_DELETE_SALES_OUTCOME`

Deletes one of an agent's custom outcomes for the whole team, and its value from Pipeline value. Funnel stages and A/B tests that use it count nothing for it from then on. Conversations and workflow data are untouched.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `outcomeId` | string | Yes |  |

### Draft chatlog follow up

**Slug:** `WONDERCHAT_MCP_DRAFT_CHATLOG_FOLLOW_UP`

Write an email to the customer of a finished chat log (any conversation, not only tickets), e.g. to correct an answer the bot got wrong. instruction says what the email should do ("Correct the answer about updating"); correction, when given, is the right answer to the customer's question and the email delivers it. Written in the customer's language from the knowledge base, with the chat as context. Returns subject and text; nothing is sent. Send it with create_ticket (toEmail from get_chatlog, sourceChatlogId = this chat log), after the user confirms. knowledgeGap=true means the knowledge base didn't cover it: check before sending.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `chatlogId` | string | Yes |  |
| `correction` | object | No |  |
| `instruction` | string | Yes |  |

### Draft ticket reply

**Slug:** `WONDERCHAT_MCP_DRAFT_TICKET_REPLY`

Have the agent draft a reply to the ticket's latest customer message from its knowledge base, in the mailbox's voice and signature. Nothing is sent. By default the draft is saved to the ticket so a teammate sees it in the dashboard composer (save=false to only return it). knowledgeGap=true means the knowledge base didn't cover the question: check the draft before sending.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `save` | boolean | No |  |
| `agentId` | string | Yes |  |
| `ticketId` | string | Yes |  |

### End ab test

**Slug:** `WONDERCHAT_MCP_END_AB_TEST`

Ends a running test. Pass shipVariantId to write that variant's changes onto the live agent for every visitor, or null to keep Control. Results and each conversation's variant stay readable. Confirm the choice with the user first: shipping changes the live agent.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `abTestId` | string | Yes |  |
| `shipVariantId` | string | Yes |  |

### Export contacts

**Slug:** `WONDERCHAT_MCP_EXPORT_CONTACTS`

Every contact matching the filters in one call (up to 50,000; truncated is true past that), with all emails, phones, company, country and region, user id, lead tier and custom attributes.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `role` | string ("LEAD" | "USER") | No |  |
| `search` | string | No |  |
| `agentId` | string | Yes |  |
| `companyId` | string | No |  |

### Export leads

**Slug:** `WONDERCHAT_MCP_EXPORT_LEADS`

Return every person in the agent's contacts directory in one call (up to 50,000), with all emails, phones and custom attributes. Same as export_contacts.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |

### Get ab test preview links

**Slug:** `WONDERCHAT_MCP_GET_AB_TEST_PREVIEW_LINKS`

Signed tokens that show one variant (draft or running) on the agent's own website for 24 hours, for checking it in production. Open any page with the widget with ?wc_preview=<token> added; the variant sticks for that browser tab. Visits and chats made this way are never counted in the results, and visitors can't pick a variant without a token. sites lists where the widget was last seen.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `abTestId` | string | Yes |  |

### Get ab test results

**Slug:** `WONDERCHAT_MCP_GET_AB_TEST_RESULTS`

Per-variant numbers for a test: visits (widget loads), conversations, graded (conversations graded resolved or unresolved), and each outcome (leadCaptured, meetingBooked, formSubmitted, hotLead, workflowConverted, conversationStarted, resolved, and custom: the test's custom outcome goal, named by goalName). The winner is decided by the test's primaryMetric: per visit, or per graded conversation for resolved. Don't call a winner until both arms have a few hundred visits (or graded conversations) and ten conversions.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `abTestId` | string | Yes |  |

### Get agent

**Slug:** `WONDERCHAT_MCP_GET_AGENT`

Get one agent's identity and status (name, state, model). For the full editable configuration use get_agent_settings.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |

### Get agent settings

**Slug:** `WONDERCHAT_MCP_GET_AGENT_SETTINGS`

Read an agent's editable configuration, grouped by area (model & behavior, profile & widget, lead collection, human handover, security, website crawling, advanced).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |

### Get analytics

**Slug:** `WONDERCHAT_MCP_GET_ANALYTICS`

Full dashboard metrics for an agent: sessions, avg messages/duration, good/bad, credits used, CSAT histogram, resolution, most-clicked links, top countries/regions, channel breakdown, unique visitors, latency.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `endDate` | string | No |  |
| `startDate` | string | No |  |

### Get analytics overview

**Slug:** `WONDERCHAT_MCP_GET_ANALYTICS_OVERVIEW`

Period-over-period headline KPIs for an agent: conversations handled/resolved, resolution rate, leads and hot leads, avg satisfaction, escalations, time/cost saved, open knowledge-gap counts, and top FAQs. The best single call for a summary.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `endDate` | string | No |  |
| `startDate` | string | No |  |

### Get chatlog

**Slug:** `WONDERCHAT_MCP_GET_CHATLOG`

Get one conversation's full message transcript plus metadata (resolution, satisfaction, lead, geo).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `chatlogId` | string | Yes |  |

### Get company

**Slug:** `WONDERCHAT_MCP_GET_COMPANY`

A company's profile, domains (with domain ids), owner, notes, custom attributes and contacts.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `companyId` | string | Yes |  |

### Get confidence trend

**Slug:** `WONDERCHAT_MCP_GET_CONFIDENCE_TREND`

Time series of the agent's answer confidence over a date range.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `endDate` | string | No |  |
| `startDate` | string | No |  |

### Get contact

**Slug:** `WONDERCHAT_MCP_GET_CONTACT`

One contact's full profile: every email, phone and channel handle they're known by (with identity ids), company, country and region (from IP), owner, notes, custom attributes, and their recent conversations (use get_ticket / get_chatlog to read one). A merged contact's old id returns the contact it was merged into.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `contactId` | string | Yes |  |

### Get conversation contact

**Slug:** `WONDERCHAT_MCP_GET_CONVERSATION_CONTACT`

The contact behind a ticket or chatlog, with their other recent conversations. Null when the conversation has no email, phone, user id or channel handle yet.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `conversationId` | string | Yes |  |

### Get embed code

**Slug:** `WONDERCHAT_MCP_GET_EMBED_CODE`

The HTML snippet that puts the agent's chat widget on a website. Add it once so it loads on every page, just before </body>: plain HTML in the shared layout/footer; Next.js App Router in app/layout.tsx (render it with next/script strategy="afterInteractive" using the snippet's inline JS, or dangerouslySetInnerHTML in a <script>); Pages Router in pages/_document.tsx or _app.tsx; React/Vite in index.html; Vue/Nuxt in index.html or app.vue head; WordPress/Shopify/Webflow in the theme's footer custom-code area. The widget's look and behavior come from the agent's settings, so the snippet never needs to change after a settings update. Then load the site (localhost is fine) and confirm with get_setup_status.sitesLive.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `placement` | string ("left" | "right") | No |  |

### Get helpdesk import

**Slug:** `WONDERCHAT_MCP_GET_HELPDESK_IMPORT`

Whether the helpdesk (Help Scout, Zendesk or Freshdesk) is connected for the agent, the account it's connected to, Help Scout's mailboxes, and the latest import of its tickets into the agent's inbox (null when none ran): status RUNNING / COMPLETED / FAILED / CANCELLED, totalConversations (the helpdesk's ticket count, when it tells), importedCount (new tickets), updatedCount (tickets that gained messages), skippedCount (spam, deleted, unchanged), failedCount, lastError.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `source` | string ("HELPSCOUT" | "ZENDESK" | "FRESHDESK") | Yes | HELPSCOUT, ZENDESK or FRESHDESK |
| `agentId` | string | Yes |  |

### Get hubspot sync

**Slug:** `WONDERCHAT_MCP_GET_HUBSPOT_SYNC`

How the agent creates HubSpot contacts: whether HubSpot is connected and the sync is on, which forms sync (leads caught in chat, handover forms), and where each field goes. Email, name and phone always sync to HubSpot's own properties (a name splits at its first space: first word to First name, the rest to Last name). Each field in `fields` has a fieldId, its form (LEAD, HANDOVER or VISITOR), and hubspotProperty: a HubSpot property name, "@fullname" (split into first and last name), "message" (HubSpot's Message), or null. A null LEAD/HANDOVER field goes into Message; a null VISITOR field is not sent. VISITOR fields are what Wonderchat knows without asking: VISITOR_COUNTRY (Country), VISITOR_REGION (State or region), VISITOR_CITY (City), FIRST_PAGE_URL (First page URL), LAST_PAGE_URL (Last page URL), CHAT_LANGUAGE (Chat language), DEVICE_TYPE (Device), CONVERSATION_URL (Conversation link). needsReview marks fields added since the mapping was last saved. includeProperties also lists the HubSpot contact properties a field can map to (needs admin access).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `includeProperties` | boolean | No |  |

### Get knowledge file download url

**Slug:** `WONDERCHAT_MCP_GET_KNOWLEDGE_FILE_DOWNLOAD_URL`

Get a link to download the original of an uploaded knowledge file (name from list_knowledge_sources, where downloadable=true). The link expires after 60 seconds, so fetch it right away.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes |  |
| `agentId` | string | Yes |  |

### Get message volume

**Slug:** `WONDERCHAT_MCP_GET_MESSAGE_VOLUME`

Time series of message counts for an agent over a date range.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `endDate` | string | No |  |
| `startDate` | string | No |  |

### Get recrawl status

**Slug:** `WONDERCHAT_MCP_GET_RECRAWL_STATUS`

Whether the agent's website sources are being recrawled now, its recrawl credits left, and what the last recrawl in the past week did: pagesAdded, pagesRemoved, pagesKeptOldContent (pages the crawl couldn't read, so their earlier content stayed) and answersCitingRemovedPages (up to 20 answers from the last 30 days that cited a removed page, to re-check with get_chatlog; only answers saved with their sources can be found).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |

### Get review item

**Slug:** `WONDERCHAT_MCP_GET_REVIEW_ITEM`

Get one review item with its hydrated evidence: the suggested/conflicting knowledge chunks and the real chat questions that triggered it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `reviewItemId` | string | Yes |  |

### Get sales funnel

**Slug:** `WONDERCHAT_MCP_GET_SALES_FUNNEL`

Sales ROI funnel for an agent, as the dashboard shows it: each stage's count, its share of the stage before, and the biggest drop-off. Pass funnelId for one of the agent's custom funnels (list_sales_funnels): it returns each stage's count, leftLinkClicks (of the visitors who stopped at that stage, how many clicked a link in a bot message, by type: PHONE, EMAIL, WEB), the biggest leak, and without a page filter the 10 busiest pages with their first- and last-stage counts. Otherwise pass metric for the default funnel (sessions, engaged, then meetings, leads or forms). Bot and crawler sessions and playground chats are never counted. Defaults to the last 30 days.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | string | No | Optional page filter: a page as host + path ("acme.com/pricing", a full URL works too), or a section ending in "/*" ("acme.com/blog/*") for that path and everything under it. get_sales_roi_pages lists the pages visitors were on. |
| `metric` | string ("meetings" | "leads" | "forms") | No |  |
| `agentId` | string | Yes |  |
| `endDate` | string | No |  |
| `funnelId` | string | No |  |
| `startDate` | string | No |  |

### Get sales outcome

**Slug:** `WONDERCHAT_MCP_GET_SALES_OUTCOME`

One custom outcome over a range: its funnel (sessions, engaged, the outcome, with the biggest drop-off and busiest pages), its trend (hourly for a day or less, else daily) and the most recent conversations it counted (chatlogId, contact, start page). Pass condition instead of outcomeId to preview what a condition would count before saving it. Defaults to the last 30 days.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | string | No | Optional page filter: a page as host + path ("acme.com/pricing", a full URL works too), or a section ending in "/*" ("acme.com/blog/*") for that path and everything under it. get_sales_roi_pages lists the pages visitors were on. |
| `agentId` | string | Yes |  |
| `endDate` | string | No |  |
| `condition` | string | No | What a conversation must meet to count: one stage of the same kinds as save_sales_funnel, except sessions and customOutcome. For "a workflow did its job", prefer workflowStepCompleted on the step that does it: workflowFinished also counts runs that ended on a "not interested" branch. |
| `outcomeId` | string | No |  |
| `startDate` | string | No |  |

### Get sales roi exclusions

**Slug:** `WONDERCHAT_MCP_GET_SALES_ROI_EXCLUSIONS`

Emails left out of Sales ROI for the space the agent is in (its team, or its owner's personal space): exact addresses and "@domain" rules. Conversations from matching contacts, and their sessions, are left out of every Sales ROI number for all agents in that space.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |

### Get sales roi pages

**Slug:** `WONDERCHAT_MCP_GET_SALES_ROI_PAGES`

Every page visitors engaged on for an agent, busiest first: engaged conversations, outcomes for the metric (meetings booked, leads captured, forms submitted, or all three for "pipeline") and, when known for the whole period, sessions. Sessions by page are only recorded from pageTrackingSince; for periods starting earlier, sessions is null. Also lists sections ("acme.com/blog/*") grouping two or more pages. Any key works as the page filter of get_sales_funnel and get_workflow_funnels. Defaults to the last 30 days.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `metric` | string ("meetings" | "leads" | "forms" | "pipeline") | No |  |
| `agentId` | string | Yes |  |
| `endDate` | string | No |  |
| `startDate` | string | No |  |

### Get setup status

**Slug:** `WONDERCHAT_MCP_GET_SETUP_STATUS`

Where an agent is in setup: training state (CREATING/ADDING/REINDEXING = still training, ENABLED = ready, ERROR = failed, with the error), how much it learned, and where its widget has been seen live. sitesLive lists hosts the widget loaded on recently; local: true marks a developer machine (localhost, private IP, seen in the last 24 hours), which confirms a dev install but never counts as a deploy. Pass checkHomepage=true after deploying to also fetch the trained site's live homepage and look for the snippet in snippetOnHomepage (null = not checked or couldn't check; a tag manager can inject it after load, so false isn't proof it's missing).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `checkHomepage` | boolean | No |  |

### Get shopify store

**Slug:** `WONDERCHAT_MCP_GET_SHOPIFY_STORE`

The Shopify store an agent uses: store name, storefront URL, whether Shopify still answers (reachable false means the app was uninstalled and must be reinstalled from the Shopify App Store), how many store pages are in the knowledge base, and whether order tracking and product search are on, with the order lookup method. When no store is linked, `store` is null and `availableStores` lists the connected stores update_shopify can link.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |

### Get stripe tools

**Slug:** `WONDERCHAT_MCP_GET_STRIPE_TOOLS`

Whether the agent is connected to Stripe (connectedVia: mcp for a Stripe sign-in, api_key for the team's restricted key, null when not connected) and each billing tool's settings: look up billing, send billing portal link, cancel, pause and resume subscription, refund payment. Refunds never run in customer chat; they are proposed in the inbox for a teammate to approve.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |

### Get team inbox metrics

**Slug:** `WONDERCHAT_MCP_GET_TEAM_INBOX_METRICS`

How the team answered inbox tickets that came in during a date range: median first reply (ms), share replied within the reply-time target (%), median time to close (ms), share reopened (%), plus tickets per Category › Subcategory with counts for the period before (for trends). Live chats, spam, samples and imported tickets are left out; the automatic acknowledgement never counts as a reply. Null means nothing to measure. startDate and endDate are required.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `endDate` | string | Yes |  |
| `startDate` | string | Yes |  |

### Get ticket

**Slug:** `WONDERCHAT_MCP_GET_TICKET`

Get one ticket: subject, state, customer, CCs, assignee, team, priority, due date, the saved draft reply (with draftAttachments, the files saved with it), and the full thread in order. isSample marks the onboarding sample ticket (made-up customer, replies not emailed). Thread entries have role CUSTOMER, BOT, AGENT (a human or AI reply sent to the customer) or NOTE (internal, never shown to the customer). images are inline image URLs; attachments are files (spreadsheets, PDFs, docs) with a downloadUrl: read one with get_ticket_attachment. sourceInboxDisconnected=true means the mailbox the ticket came in on lost its sign-in, so send_ticket_reply fails until a teammate reconnects it in the dashboard. mergedIntoTicketId is set when the ticket was merged into another (see merge_tickets): work on that one instead.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `ticketId` | string | Yes |  |

### Get tickets closed

**Slug:** `WONDERCHAT_MCP_GET_TICKETS_CLOSED`

How many inbox conversations (tickets and live chats) an agent's team closed in a date range, in total and by the channel they came in on: live chat, email handover, AI escalation, connected inbox, hosted address, WhatsApp, SMS, Messenger, Instagram, Slack, Microsoft Teams, Discord, Telegram, phone, API. Spam, merged duplicates and sample tickets are left out. startDate and endDate are required.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `endDate` | string | Yes |  |
| `startDate` | string | Yes |  |

### Get ticket attachment

**Slug:** `WONDERCHAT_MCP_GET_TICKET_ATTACHMENT`

Read a file attached to a ticket message, by an attachmentId from get_ticket. format "text" (default) returns its text: spreadsheets as CSV per sheet plus cell comments; PDF, Word, PowerPoint, CSV, Markdown and plain text are extracted. Long files are paged: pass back nextOffset. format "file" returns the original file as a base64 resource.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `format` | string ("text" | "file") | No |  |
| `offset` | integer | No |  |
| `agentId` | string | Yes |  |
| `maxChars` | integer | No |  |
| `ticketId` | string | Yes |  |
| `attachmentId` | string | Yes |  |

### Get ticket settings

**Slug:** `WONDERCHAT_MCP_GET_TICKET_SETTINGS`

The agent's inbox automation: reply-time target, follow-ups (acknowledgement email on new tickets, reminder and auto-close when the customer goes quiet) and holidays. Day counts are business days when the agent has business hours.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |

### Get top questions

**Slug:** `WONDERCHAT_MCP_GET_TOP_QUESTIONS`

The most frequent questions / FAQ clusters for an agent over a date range. startDate and endDate are required.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `endDate` | string | Yes |  |
| `startDate` | string | Yes |  |

### Get workflow funnels

**Slug:** `WONDERCHAT_MCP_GET_WORKFLOW_FUNNELS`

Per-workflow funnel for an agent: runs triggered, visitors engaged (null when the workflow never asks anything), and conversions (null when the workflow has no goal, e.g. a refusal or a lookup). The goal is detected from the steps: the last step that sends data out (custom action that writes, Pardot, Zendesk ticket, email, custom form), else the last email/phone question. Each step lists reached, completed, failed (with the most common error), how many visitors left there, and linkClicks: links visitors clicked in bot messages while on that step, by type (PHONE, EMAIL, WEB), with how many runs clicked one and how many of those then left there. The funnel's linkClicks counts runs per type across all steps. Steps that were removed or changed since are in changedSteps.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | string | No | Only runs from visitors on this page: host + path ("acme.com/pricing"), or a section ending in "/*" ("acme.com/blog/*"). See get_sales_roi_pages. |
| `agentId` | string | Yes |  |
| `endDate` | string | No |  |
| `startDate` | string | No |  |

### Import from helpdesk

**Slug:** `WONDERCHAT_MCP_IMPORT_FROM_HELPDESK`

Copies the agent's connected Help Scout, Zendesk or Freshdesk tickets into its inbox, with customer messages, replies, internal notes, attachments, tags, CCs and the assignee (matched to a teammate by email). Closed tickets come in closed; open ones stay open. Spam and deleted tickets are skipped and nothing is emailed to customers. Runs in the background: poll get_helpdesk_import. Running it again only adds new tickets and messages. mailboxIds (Help Scout only): mailbox ids from get_helpdesk_import; omit for all. Fails with FORBIDDEN when the helpdesk isn't connected (connect it in the dashboard) and CONFLICT while an import from it is already running.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `source` | string ("HELPSCOUT" | "ZENDESK" | "FRESHDESK") | Yes | HELPSCOUT, ZENDESK or FRESHDESK |
| `agentId` | string | Yes |  |
| `mailboxIds` | array | No |  |

### List ab tests

**Slug:** `WONDERCHAT_MCP_LIST_AB_TESTS`

An agent's A/B test (draft or running) and its past tests. Each variant lists its share of website visitors and every setting it changes against Control (Control value → variant value). A test splits website visitors across the chat widget (and its greeting popup) and the floating search bar: a visitor gets the same variant in both, and each uses the settings it supports. The inline search bar, hosted page and other channels always get Control.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |

### List agents

**Slug:** `WONDERCHAT_MCP_LIST_AGENTS`

List the chatbots (agents) you can access, newest first, with id, name, state, plan tier and the workspace each belongs to (null = personal). Call this first to discover agentId values for the other tools. workspaceId: a workspace from list_workspaces, or "PERSONAL". search: case-insensitive name match. Cursor-paginated: pass back nextCursor.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `search` | string | No |  |
| `workspaceId` | string | No |  |

### List companies

**Slug:** `WONDERCHAT_MCP_LIST_COMPANIES`

List the companies on the agent's account with their email domains and contact counts. Optional search on name or domain.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `search` | string | No |  |
| `agentId` | string | Yes |  |

### List contacts

**Slug:** `WONDERCHAT_MCP_LIST_CONTACTS`

List the people who have talked to an agent, most recently seen first: name, email, phone, company, country and region, role (LEAD, or USER when signed in with a user id), conversation count and last seen. Search matches name, any email or phone, or the customer's own user id. Pass nextCursor back as cursor for the next page; total is only returned on the first page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `role` | string ("LEAD" | "USER") | No |  |
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `search` | string | No |  |
| `agentId` | string | Yes |  |
| `companyId` | string | No |  |

### List knowledge sources

**Slug:** `WONDERCHAT_MCP_LIST_KNOWLEDGE_SOURCES`

List what's indexed in the agent's knowledge base: crawled pages (delete by url), files (delete by name), and text snippets (delete by id). Use the returned ids/urls with delete_knowledge_source. Files with downloadable=true can be fetched with get_knowledge_file_download_url.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |

### List leads

**Slug:** `WONDERCHAT_MCP_LIST_LEADS`

List the people from the agent's contacts directory, most recently seen first (name, email, phone, company, conversation count, last seen). Search matches name, email, phone or user id. Pass nextCursor back as cursor for the next page. Same as list_contacts.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `search` | string | No |  |
| `agentId` | string | Yes |  |

### List review activity

**Slug:** `WONDERCHAT_MCP_LIST_REVIEW_ACTIVITY`

Audit trail of past review decisions (accepted / applied / rejected / proposed) for an agent.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `agentId` | string | Yes |  |
| `decisions` | array | No |  |

### List review items

**Slug:** `WONDERCHAT_MCP_LIST_REVIEW_ITEMS`

List knowledge-gap review items for an agent, newest/highest-priority first. Filter by status (default OPEN) and failure mode. Cursor-paginated.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `status` | string ("OPEN" | "ACCEPTED" | "REJECTED" | "RESOLVED") | No |  |
| `agentId` | string | Yes |  |
| `failureMode` | string ("RETRIEVAL_ERROR" | "KNOWLEDGE_GAP" | "KNOWLEDGE_CONFLICT" | "SYNTHESIS_ERROR" | "USER_REPORTED" | "OUT_OF_SCOPE") | No |  |

### List sales funnels

**Slug:** `WONDERCHAT_MCP_LIST_SALES_FUNNELS`

An agent's custom Sales ROI funnels (id, name, stages with the label each shows) and what a new stage can point at: workflows with their steps, tags, tools and custom outcomes. Use the ids here with save_sales_funnel and save_sales_outcome.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |

### List sales outcomes

**Slug:** `WONDERCHAT_MCP_LIST_SALES_OUTCOMES`

An agent's custom outcomes: the team's own Sales performance metrics shown next to meetings booked, leads captured and forms submitted. Each has an id, name, condition (conditionLabel says it in words), valuePerOutcome (added to Pipeline value per conversation counted; null when not part of it), targetMissing (what it points at was deleted, so it counts nothing), overlap (built-in metrics that count the same conversations, so valuing both counts Pipeline value twice), and its count and prevCount (the period of equal length before) for the range. Counts are conversations by when they started, once each. Defaults to the last 30 days.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | string | No | Optional page filter: a page as host + path ("acme.com/pricing", a full URL works too), or a section ending in "/*" ("acme.com/blog/*") for that path and everything under it. get_sales_roi_pages lists the pages visitors were on. |
| `agentId` | string | Yes |  |
| `endDate` | string | No |  |
| `startDate` | string | No |  |

### List tickets

**Slug:** `WONDERCHAT_MCP_LIST_TICKETS`

List an agent's inbox tickets (handed-over chats and email tickets). status: ACTIVE (default, everything not closed), OPEN (no reply yet), ON_US (we owe a reply), ON_CUSTOMER (waiting on them), CLOSED, ALL. assignee: ME, UNASSIGNED, MENTIONED_ME, SPAM (the spam folder, hidden from every other assignee value) or a userId. team: a teamId or NONE. mailbox: a connectionId from list_ticket_senders, to see only tickets that arrived on that mailbox. customState: only open tickets in that team-defined state (see manage_ticket_states); each ticket's customState is the one it sits in, or null. category: a path like "Billing" or "Billing › Refunds" (a category includes its subcategories) or NONE. search also matches a ticket number ("1042" or "#1042") and the subject. isSample marks the onboarding sample ticket (a made-up customer; replies are never emailed). Cursor-paginated: pass back nextCursor.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `team` | string | No |  |
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `search` | string | No |  |
| `sortBy` | string ("NEWEST" | "OLDEST" | "PRIORITY" | "RECENT_ACTIVITY" | "DUE_SOONEST") | No |  |
| `status` | string ("ACTIVE" | "OPEN" | "ON_US" | "ON_CUSTOMER" | "CLOSED" | "ALL") | No |  |
| `agentId` | string | Yes |  |
| `mailbox` | string | No |  |
| `assignee` | string | No |  |
| `category` | string | No |  |
| `priority` | string ("LOW" | "MEDIUM" | "HIGH") | No |  |
| `customState` | string | No |  |

### List ticket assignees

**Slug:** `WONDERCHAT_MCP_LIST_TICKET_ASSIGNEES`

The people and teams tickets on this agent can be assigned to. Use the userId / teamId values with update_ticket, create_ticket and list_tickets filters.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |

### List ticket senders

**Slug:** `WONDERCHAT_MCP_LIST_TICKET_SENDERS`

Addresses a new outbound ticket can be sent from: connected mailboxes (kind MAILBOX, with a connectionId) and the agent's Wonderchat address (kind RELAY, connectionId null). A mailbox with ownerUserId is that teammate's personal mailbox: only customer requests to it become tickets (assigned to them), and anything sent from it comes from them. disconnected=true means its sign-in expired or was revoked: sending from it fails until a teammate reconnects it in the dashboard (the agent's Email channel).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |

### List workspaces

**Slug:** `WONDERCHAT_MCP_LIST_WORKSPACES`

List the spaces you can act in: your personal space (workspaceId "PERSONAL") and every workspace you belong to, with your role and agent count. Pass a workspaceId to list_agents to see only that space's agents.

### Manage ticket categories

**Slug:** `WONDERCHAT_MCP_MANAGE_TICKET_CATEGORIES`

The agent's ticket categories: Category › Subcategory, one per ticket, for reporting what tickets are about (the area, then the specific issue). AI sorts new tickets into them using each one's description. action list returns them with ticket counts; add creates a category, or a subcategory when you pass parent (a category name); update changes name and/or description of the one at path; delete archives the one at path (and a category's subcategories), so old tickets keep it in reports. suggest proposes a list from the last 90 days of tickets without saving it (add the ones you want). Set a ticket's category with update_ticket category. add/update/delete/suggest need agent admin rights.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No |  |
| `path` | string | No | The one to update/delete: "Billing" or "Billing › Refunds". |
| `action` | string ("list" | "add" | "update" | "delete" | "suggest") | Yes |  |
| `parent` | string | No |  |
| `agentId` | string | Yes |  |
| `description` | string | No |  |

### Manage ticket states

**Slug:** `WONDERCHAT_MCP_MANAGE_TICKET_STATES`

The agent's team-defined ticket states: extra inbox board columns (e.g. 'Waiting on engineering') that open tickets are moved into by hand and stay in until moved out or closed. action list returns them in board order; add creates one; rename (name -> newName) and delete apply to the named state. Deleting sends its tickets back to their built-in state. Move a ticket with update_ticket customState. add/rename/delete need agent admin rights.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No |  |
| `action` | string ("list" | "add" | "rename" | "delete") | Yes |  |
| `agentId` | string | Yes |  |
| `newName` | string | No |  |

### Merge contacts

**Slug:** `WONDERCHAT_MCP_MERGE_CONTACTS`

Merge loserId into winnerId: conversations, emails, phones and handles move to the winner, which keeps its own profile values. Not reversible. Refused when both have a different user id from the customer's system. Confirm with the user first.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `loserId` | string | Yes |  |
| `winnerId` | string | Yes |  |

### Merge tickets

**Slug:** `WONDERCHAT_MCP_MERGE_TICKETS`

Merge a duplicate ticket (sourceTicketId) into another ticket on the same agent (targetTicketId), e.g. one email sent to two connected mailboxes. The source's messages move to the target (an email the target already has is skipped), its customer and CCs are copied on the target's replies, and the source is closed and hidden from the inbox. Later replies on the source's email thread land on the target. Live chats can't be merged. Can't be undone: confirm with the user first.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `sourceTicketId` | string | Yes |  |
| `targetTicketId` | string | Yes |  |

### Point review item to file

**Slug:** `WONDERCHAT_MCP_POINT_REVIEW_ITEM_TO_FILE`

Resolve a review item by pointing it at an already-indexed PDF/file by name.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `pdfName` | string | Yes |  |
| `reviewItemId` | string | Yes |  |

### Point review item to url

**Slug:** `WONDERCHAT_MCP_POINT_REVIEW_ITEM_TO_URL`

Resolve a review item by pointing it at a URL. If the URL is already indexed it boosts it and resolves; otherwise it returns needsIngest=true (follow with add_knowledge_source, then resolve_review_item).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes |  |
| `agentId` | string | Yes |  |
| `reviewItemId` | string | Yes |  |

### React to ticket note

**Slug:** `WONDERCHAT_MCP_REACT_TO_TICKET_NOTE`

Add (or with remove: true, take back) your emoji reaction on an internal note, like a teammate acknowledging it in the dashboard. noteId is a NOTE's messageId from get_ticket, whose notes list their reactions. emoji is one of 👍 ❤️ 🎉 😂 👀 ✅ 🙏. Needs a credential tied to a person (OAuth or a personal API key).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `emoji` | string ("👍" | "❤️" | "🎉" | "😂" | "👀" | "✅" | "🙏") | Yes |  |
| `noteId` | string | Yes |  |
| `remove` | boolean | No |  |
| `agentId` | string | Yes |  |
| `ticketId` | string | Yes |  |

### Recrawl website

**Slug:** `WONDERCHAT_MCP_RECRAWL_WEBSITE`

Re-read the agent's website sources now, like Recrawl now in the dashboard: pages that are new on the site are added, pages that are gone are removed, and every other page is read again. Spends one of the agent's recrawl credits per run (recrawlsLeft). sourceUrls limits it to those website sources (the response lists them); omit it for all. Runs in the background: poll get_recrawl_status until recrawling is false, then read lastRecrawl.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `sourceUrls` | array | No |  |

### Remove company domain

**Slug:** `WONDERCHAT_MCP_REMOVE_COMPANY_DOMAIN`

Remove an email domain (domainId from get_company) from a company. Contacts already in the company stay in it; new contacts on that domain no longer join automatically.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `domainId` | string | Yes |  |
| `companyId` | string | Yes |  |

### Remove contact identity

**Slug:** `WONDERCHAT_MCP_REMOVE_CONTACT_IDENTITY`

Remove one of a contact's identities (identityId from get_contact). Conversations that came in only on it move to a contact of their own; movedConversations says how many.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `contactId` | string | Yes |  |
| `identityId` | string | Yes |  |

### Reopen review item

**Slug:** `WONDERCHAT_MCP_REOPEN_REVIEW_ITEM`

Move a rejected review item back to OPEN. Idempotent.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `reviewItemId` | string | Yes |  |

### Reopen ticket

**Slug:** `WONDERCHAT_MCP_REOPEN_TICKET`

Reopen a closed ticket so it returns to the active inbox.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `ticketId` | string | Yes |  |

### Resolve review item

**Slug:** `WONDERCHAT_MCP_RESOLVE_REVIEW_ITEM`

Mark a review item resolved (generic 'done'), optionally with a note. Writes an audit row.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `note` | string | No |  |
| `agentId` | string | Yes |  |
| `reviewItemId` | string | Yes |  |

### Rewrite ticket draft

**Slug:** `WONDERCHAT_MCP_REWRITE_TICKET_DRAFT`

Polish reply text without changing its facts: IMPROVE, CONCISE, EXPAND, FORMAL, FRIENDLY, GRAMMAR, REFINE, or CUSTOM with your own `prompt`. Pass `selectedText` (an exact passage of `text`) to rewrite only that passage; the rest is left as written. Returns the full rewritten text; nothing is saved or sent.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | string | Yes |  |
| `prompt` | string | No | What to change. Required for CUSTOM. |
| `agentId` | string | Yes |  |
| `ticketId` | string | Yes |  |
| `instruction` | string ("IMPROVE" | "CONCISE" | "EXPAND" | "FORMAL" | "FRIENDLY" | "GRAMMAR" | "REFINE" | "CUSTOM") | Yes |  |
| `selectedText` | string | No | A passage copied exactly from `text`; only it is edited. |

### Save sales funnel

**Slug:** `WONDERCHAT_MCP_SAVE_SALES_FUNNEL`

Creates a custom Sales ROI funnel for an agent, or replaces one when funnelId is given. Stages are ordered and count cumulatively: each counts conversations that also reached every stage above it. Kinds: sessions (Total sessions), engaged (Engaged with agent), meetingOffered (Meeting offered), meetingBooked (Meeting booked), leadAsked (Contact details asked), leadCaptured (Lead captured), hotLead (High-value lead), formSubmitted (Form submitted), handedToTeam (Handed to team), linkClicked (Link clicked), customOutcome (Custom outcome), workflowStarted (Workflow started), workflowStepReached (Workflow step reached), workflowStepCompleted (Workflow step completed), workflowConverted (Workflow goal reached), workflowFinished (Workflow finished), tagged (Tagged), toolSucceeded (Tool ran). "sessions" can only be first. tagged takes tagName; workflowStarted, workflowConverted (the goal worked out from its steps) and workflowFinished (ran to the end of any path with no step failing) take workflowId; workflowStepReached (shown) and workflowStepCompleted (answered, or its form or action went through) take workflowId and workflowActionId; toolSucceeded takes chatbotActionId; customOutcome takes outcomeId (ids from list_sales_funnels); linkClicked counts conversations where the visitor clicked a link in a bot message and takes an optional linkType (PHONE, EMAIL or WEB) to count one type only. Any stage takes an optional label to rename it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes |  |
| `stages` | array | Yes |  |
| `agentId` | string | Yes |  |
| `funnelId` | string | No |  |

### Save sales outcome

**Slug:** `WONDERCHAT_MCP_SAVE_SALES_OUTCOME`

Adds a custom outcome to an agent's Sales performance metrics, or replaces one when outcomeId is given. Up to 8 per agent. valuePerOutcome (dollars) adds it to Pipeline value per conversation counted; null leaves it out. Check overlap in list_sales_outcomes afterwards: valuing an outcome whose conversations a built-in metric also counts adds them to Pipeline value twice.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes |  |
| `agentId` | string | Yes |  |
| `condition` | string | Yes | What a conversation must meet to count: one stage of the same kinds as save_sales_funnel, except sessions and customOutcome. For "a workflow did its job", prefer workflowStepCompleted on the step that does it: workflowFinished also counts runs that ended on a "not interested" branch. |
| `outcomeId` | string | No |  |
| `valuePerOutcome` | string | Yes |  |

### Save ticket draft

**Slug:** `WONDERCHAT_MCP_SAVE_TICKET_DRAFT`

Save (replace) the draft reply on a ticket without sending it, e.g. for a human to review in the dashboard. Markdown. Images and files: upload each with create_upload and pass them in uploads (base64 images/files also work for tiny ones). Inline images are added at the end of the draft and go out inline when it's sent. Files are saved with the draft as attachments: the teammate sees them in the dashboard composer and they go out with the reply when it is sent there. Passing files or file uploads replaces the draft's saved files (files: [] removes them); leaving both out keeps them. An empty draft with no images clears the draft text.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `draft` | string | Yes |  |
| `files` | array | No | Files to attach to the draft (any type, e.g. a text file, spreadsheet or PDF), as base64. 8 MB total, uploads included. Prefer uploads: base64 only suits tiny files. |
| `images` | array | No | Images to show inline in the draft, as base64 (a data: URI prefix is fine). Max 10, 5 MB each. Prefer uploads: base64 only suits tiny images. |
| `agentId` | string | Yes |  |
| `uploads` | array | No | Preferred way to add images and files: upload each with create_upload, then pass { uploadId } here. inline: true shows an image inline; otherwise the file is attached. Max 20. |
| `ticketId` | string | Yes |  |

### Search chatlogs

**Slug:** `WONDERCHAT_MCP_SEARCH_CHATLOGS`

List / search an agent's conversations with filters (free text, date range, resolution state, user feedback, lead tier, tags, archived). Cursor-paginated.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | object | No |  |
| `search` | string | No |  |
| `agentId` | string | Yes |  |
| `endDate` | string | No |  |
| `leadTier` | string ("ALL" | "HOT" | "WARM" | "COLD") | No |  |
| `startDate` | string | No |  |
| `showArchived` | boolean | No |  |
| `userFeedback` | string ("ALL" | "POSITIVE" | "NEGATIVE" | "NEUTRAL" | "PERSONAL_DATA") | No |  |
| `excludeTagNames` | array | No |  |
| `includeTagNames` | array | No |  |
| `resolutionState` | string ("ALL" | "RESOLVED" | "UNRESOLVED" | "NOT_SURE") | No |  |

### Search knowledge base

**Slug:** `WONDERCHAT_MCP_SEARCH_KNOWLEDGE_BASE`

Run the agent's real knowledge-base retrieval for a query and return the ranked chunks it would use (text, source url/file, type), in the bot's own rank order. Does not generate an answer, so it costs no message credits. Use it to check what the agent can find.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `query` | string | Yes |  |
| `agentId` | string | Yes |  |
| `knowledgeBaseId` | string | No | For an agent with several knowledge bases (e.g. one per product version): which one to search, as a visitor who picked it would. Omitted: the default one. The common knowledge base is always included. |

### Send ticket reply

**Slug:** `WONDERCHAT_MCP_SEND_TICKET_REPLY`

Email a reply to the customer on a ticket (Markdown), threaded onto their email from the address the ticket arrived on (a connected mailbox, else the agent's Wonderchat address). Images and files: upload each with create_upload and pass them in uploads (inline: true shows an image inline, otherwise it's attached); base64 images/files also work for tiny ones. Fails if the ticket has no customer email. This reaches a real customer and cannot be undone, so confirm the text with the user first. Clears the saved draft, including files saved with it: those are only sent when the reply is sent from the dashboard, so pass any file you want here.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `files` | array | No | Files to attach to the email (any type, e.g. a spreadsheet or PDF), as base64. 8 MB total, uploads included. Prefer uploads: base64 only suits tiny files. |
| `images` | array | No | Images to show inline in the email, as base64 (a data: URI prefix is fine). Max 10, 5 MB each. Prefer uploads: base64 only suits tiny images. |
| `agentId` | string | Yes |  |
| `message` | string | Yes |  |
| `uploads` | array | No | Preferred way to add images and files: upload each with create_upload, then pass { uploadId } here. inline: true shows an image inline; otherwise the file is attached. Max 20. |
| `ticketId` | string | Yes |  |

### Set chatlog resolution

**Slug:** `WONDERCHAT_MCP_SET_CHATLOG_RESOLUTION`

Set the resolution state (RESOLVED / UNRESOLVED / NOT_SURE, or null) and/or the satisfaction score (1-5, or null) on a conversation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `chatlogId` | string | Yes |  |
| `resolutionState` | string | No |  |
| `satisfactionScore` | string | No |  |

### Set chatlog status

**Slug:** `WONDERCHAT_MCP_SET_CHATLOG_STATUS`

Set (or clear with null) a per-bot custom status on one or more conversations.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `chatlogIds` | array | Yes |  |
| `customStatusId` | string | Yes |  |

### Skip review item

**Slug:** `WONDERCHAT_MCP_SKIP_REVIEW_ITEM`

Reject (dismiss) a review item, optionally with a reason. Sets status REJECTED.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `reason` | string | No |  |
| `agentId` | string | Yes |  |
| `reviewItemId` | string | Yes |  |

### Start ab test

**Slug:** `WONDERCHAT_MCP_START_AB_TEST`

Starts a draft test: new website visitors are split between the variants from now on, and the split locks. Every variant must change at least one setting.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `abTestId` | string | Yes |  |

### Stop helpdesk import

**Slug:** `WONDERCHAT_MCP_STOP_HELPDESK_IMPORT`

Stops a running helpdesk import after the page it is on. Tickets already imported stay; importing again later carries on without duplicates.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `importId` | string | Yes |  |

### Tag chatlog

**Slug:** `WONDERCHAT_MCP_TAG_CHATLOG`

Add or remove a tag on a conversation (op: add | remove).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `op` | string ("add" | "remove") | Yes |  |
| `tag` | string | Yes |  |
| `agentId` | string | Yes |  |
| `chatlogId` | string | Yes |  |

### Update ab test

**Slug:** `WONDERCHAT_MCP_UPDATE_AB_TEST`

Renames a test, or (while it's a draft) changes its goal or split. weights gives every variant's share of visitors (from list_ab_tests); they must add up to 100 and each variant needs at least 10.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No |  |
| `agentId` | string | Yes |  |
| `weights` | array | No |  |
| `abTestId` | string | Yes |  |
| `primaryMetric` | string | No | What decides the winner. Per website visit: leadCaptured, meetingBooked, formSubmitted, hotLead, workflowConverted, conversationStarted. Per graded conversation: resolved (resolution rate, resolved ÷ resolved + unresolved, like Analytics). Or one of the agent's custom outcomes, per visit, as "outcome:<id>" (ids from list_sales_outcomes). |

### Update ab test variant

**Slug:** `WONDERCHAT_MCP_UPDATE_AB_TEST_VARIANT`

Sets settings on a draft or running variant (not Control). Only settings that differ from Control are kept; sending Control's value removes that change. Allowed keys: loaderEmbedType, name, tagline, hideTagline, pictureUrl, pictureBackgroundColor, shouldPlayInitialVideo, initialVideoUrl, guidedMenuEnabled, guidedMenu, promptBarDisplayMode, shouldSuggestedQuestionsDisappear, suggestedQuestionsDefaultExpanded, customFieldMessages, enableLeavingAnEmail, leaveAnEmailMessage, leaveMessageButtonLabel, showLeaveAnEmailAfterNumMessages, shouldAutoAskToLeaveEmail, autoAskToLeaveEmailThreshold, shouldAutoAskToLeaveEmailAfterFailingToReply, autoAskToLeaveEmailAfterFailingToReplyThreshold, enableLiveChat, showLiveChatAfterNumMessages, liveChatButtonText, meetingSchedulerEnabled, meetingSchedulerTriggerPrompt, meetingSchedulerAskFirst, meetingSchedulerButtonText, marketoFormEnabled, marketoFormShowCondition, marketoFormCustomPrompt, marketoFormShowButton, marketoFormButtonText, customJsFormEnabled, customJsFormShowCondition, customJsFormCustomPrompt, customJsFormShowButton, customJsFormButtonText, customJsFormSubmissionMessage, homepageEnabled, homepageGreeting, homepageTagline, homepageMessageCardTitle, homepageMessageCardSubtitle, homepageShowExampleQuestions, homepageShowQuickLinks, openAiModel, temperature, responseLength, responseType, fallbackMessage, enableUserConfirmation, userConfirmationMessage, userConfirmationCheckboxLabel, greetingMessage, outsideHoursGreetingMessage, inputPlaceholder, shouldSpontaneouslyGreet, shouldSpontaneouslyGreetMobile, shouldShowSuggestedQuestions, enableDynamicGreeting, greetingBehavior, greetingTrigger, exampleQuestions, isCollectionMandatory, collectFieldsAfterNumMessages, collectLeadsBeforeReply, leadFields, emailCollectionMessage, nameCollectionMessage, phoneNumberCollectionMessage, requireFullName, shouldValidateWorkEmail, requireEmailVerification, requirePhoneVerification, phoneCountryCodeEnabled, allowedPhoneCountries, consentCertificationEnabled, tcpaConsentText, enableLeadsCollectedMessage, leadsCollectedMessage, enabledWorkflowIds, colorTheme, fontColor, buttonColor, backgroundColor, widgetHeaderStyle, widgetFont, fontSize, widgetIconUrl, floatingButtonStyle, customPrompt, and languages ({ "<language>": { greetingMessage, outsideHoursGreetingMessage, inputPlaceholder, emailCollectionMessage, nameCollectionMessage, phoneNumberCollectionMessage } }). leadFields is the ordered list of lead fields to ask (EMAIL, NAME, PHONE_NUMBER or a custom field name); enabledWorkflowIds is the full list of workflows that run in this variant; loaderEmbedType (WIDGET or SEARCHBAR) is what the site's snippet shows this variant's visitors: the chat widget or the floating search bar instead, to test which converts better (needs the snippet from the Installation tab). Everything else (knowledge base, tools, integrations) is shared. name renames the variant (e.g. "Short answers"). A running test's variant can still change: its visitors see it right away and the results page notes that its results mix both versions, so confirm with the user first.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No |  |
| `values` | object | No |  |
| `agentId` | string | Yes |  |
| `variantId` | string | Yes |  |

### Update advanced

**Slug:** `WONDERCHAT_MCP_UPDATE_ADVANCED`

Update advanced knobs: hybrid/agentic retrieval, conversation history, auto-restart, max question length, API answer caching (repeat first questions sent to /api/v1/chat get the saved answer for apiAnswerCacheTtlHours; a request's own `cache` / `cacheTtlHours` override these), and the knowledge base picker (agents with several knowledge bases: require a pick before chatting instead of using the default knowledge base, a button that lets visitors switch knowledge base mid-chat, and which knowledge bases are hidden from the picker; a hidden one can't be picked, chats already in it move to the default knowledge base, and its content is kept). Only the fields you pass change.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `useAgenticRag` | boolean | No |  |
| `useHybridSearch` | boolean | No |  |
| `maxQuestionLength` | integer | No |  |
| `apiAnswerCacheEnabled` | boolean | No |  |
| `shouldAutoRestartChat` | boolean | No |  |
| `apiAnswerCacheTtlHours` | integer | No |  |
| `hiddenKnowledgeBaseIds` | array | No | Knowledge base ids (from get_agent_settings advanced.knowledgeBases) to hide from the picker. Replaces the hidden set: every other knowledge base is shown. |
| `autoRestartChatAfterHours` | integer | No |  |
| `enableConversationHistory` | boolean | No |  |
| `knowledgeBaseSwitchButtonText` | string | No |  |
| `requireKnowledgeBaseSelection` | boolean | No |  |
| `showKnowledgeBaseSwitchButton` | boolean | No |  |

### Update chatlog notes

**Slug:** `WONDERCHAT_MCP_UPDATE_CHATLOG_NOTES`

Set (or clear with null) the internal agent notes on a conversation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `notes` | string | Yes |  |
| `agentId` | string | Yes |  |
| `chatlogId` | string | Yes |  |

### Update company

**Slug:** `WONDERCHAT_MCP_UPDATE_COMPANY`

Change a company's name, website, notes or owner (a teammate's user id). customAttributes is a patch: a value sets that key, null removes it, keys you leave out stay. Omit a field to leave it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No |  |
| `notes` | string | No |  |
| `agentId` | string | Yes |  |
| `website` | string | No |  |
| `companyId` | string | Yes |  |
| `ownerUserId` | string | No |  |
| `customAttributes` | object | No |  |

### Update contact

**Slug:** `WONDERCHAT_MCP_UPDATE_CONTACT`

Change a contact's name, notes, owner (a teammate's user id), or company (companyId, or null for none). customAttributes is a patch: a value sets that key, null removes it, keys you leave out stay. Omit a field to leave it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No |  |
| `notes` | string | No |  |
| `agentId` | string | Yes |  |
| `companyId` | string | No |  |
| `contactId` | string | Yes |  |
| `ownerUserId` | string | No |  |
| `customAttributes` | object | No |  |

### Update hubspot sync

**Slug:** `WONDERCHAT_MCP_UPDATE_HUBSPOT_SYNC`

Change the agent's HubSpot contact sync. Pass only what should change. syncLeads / syncHandoverForms pick which forms create contacts (at least one must stay on). mappings sets where fields go, by fieldId from get_hubspot_sync: hubspotProperty is a property name from get_hubspot_sync includeProperties, "@fullname" to split a name into first and last name, "message" for HubSpot's Message (any number of fields may go there), or null to clear it (a form field goes to Message; a VISITOR field stops being sent). Each other property can take one field per form. VISITOR fields fill only new contacts, except LAST_PAGE_URL and CONVERSATION_URL, which update every time; a form answer for the same property wins. Saving mappings or forms turns the sync on; enabled false turns it off and keeps the mapping. HubSpot must already be connected in the dashboard.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `enabled` | boolean | No |  |
| `mappings` | array | No |  |
| `syncLeads` | boolean | No |  |
| `syncHandoverForms` | boolean | No |  |

### Update human handover

**Slug:** `WONDERCHAT_MCP_UPDATE_HUMAN_HANDOVER`

Update human-handover settings: enable leaving an email, support recipient emails, the handover messages, the 'did this help?' prompt, and two-way email handover (on: the customer gets an email they can reply to and every reply, including the team's replies to the handover alert, stays on the Inbox ticket; off: the alert's Reply-To is the customer, so the team answers from its own email outside the Inbox), leaveMessageWorkflowId (a workflow the 'Leave a message' button starts instead of the form; null for the form) and leaveMessageButtonLabel (that button's text when it starts a workflow, also sent as the visitor's message; null for the translated 'Leave a message'; translate it per language in the dashboard). Only the fields you pass change. (Custom handover fields and triggers are managed in the dashboard.)

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `supportEmails` | array | No |  |
| `leaveAnEmailMessage` | string | No |  |
| `twoWayEmailHandover` | boolean | No |  |
| `enableLeavingAnEmail` | string | No |  |
| `shouldAskDidThisHelp` | boolean | No |  |
| `leaveMessageWorkflowId` | string | No |  |
| `leaveMessageButtonLabel` | string | No |  |
| `handoverSucceededMessage` | string | No |  |

### Update lead collection

**Slug:** `WONDERCHAT_MCP_UPDATE_LEAD_COLLECTION`

Update lead capture toggles, collection messages, and lead-scoring criteria. Only the fields you pass change. shouldValidateWorkEmail rejects free-mail addresses (Gmail, Yahoo, ISP mailboxes) in lead and handover forms. (Custom lead fields and triggers are managed in the dashboard.)

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `enableLeadScoring` | boolean | No |  |
| `shouldCollectName` | string | No |  |
| `shouldCollectEmail` | string | No |  |
| `isCollectionMandatory` | string | No |  |
| `nameCollectionMessage` | string | No |  |
| `emailCollectionMessage` | string | No |  |
| `leadScoringHotCriteria` | string | No |  |
| `leadScoringColdCriteria` | string | No |  |
| `leadScoringWarmCriteria` | string | No |  |
| `shouldValidateWorkEmail` | boolean | No |  |
| `shouldCollectPhoneNumber` | string | No |  |
| `phoneNumberCollectionMessage` | string | No |  |

### Update model and behavior

**Slug:** `WONDERCHAT_MCP_UPDATE_MODEL_AND_BEHAVIOR`

Update the agent's brain: model, system prompt, temperature, response length/type, reply language, fallback message, the messages shown while it searches (searchingStatusMessages: replaces "Searching knowledge base" in the chat widget; several rotate every few seconds; [] restores the default) and citation toggle. Models ending in _EU (e.g. CLAUDE_SONNET_46_EU) answer from EU servers only, Scale plan and up. Only the fields you pass change.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `model` | string ("GPT35" | "GPT35_16K" | "GPT4" | "GPT4_TURBO" | "GPT4_O" | "GPT4_1" | "GPT4_1_MINI" | "GPT4_O_MINI" | "GPT4_O_MINI_60K" | "GPT4_O_4K" | "GPT4_O_10K" | "O3_MINI" | "GPT5" | "GPT5_MINI" | "GPT5_NANO" | "GPT5_1" | "GPT5_2" | "GPT5_4_MINI" | "GPT5_4_NANO" | "GPT5_5" | "GPT5_6_SOL" | "GPT5_6_LUNA" | "GPT5_6_TERRA" | "GPT6_LUNA" | "GPT6_TERRA" | "MISTRAL_SMALL" | "MISTRAL_MEDIUM" | "CLAUDE_3_HAIKU" | "CLAUDE_3_SONNET" | "CLAUDE_3_OPUS" | "CLAUDE_35_SONNET" | "CLAUDE_4_SONNET" | "CLAUDE_45_SONNET" | "CLAUDE_4_OPUS" | "CLAUDE_45_HAIKU" | "CLAUDE_37_SONNET" | "CLAUDE_35_SONNET_5K" | "CLAUDE_46_OPUS" | "CLAUDE_47_OPUS" | "CLAUDE_48_OPUS" | "CLAUDE_55_OPUS" | "CLAUDE_5_SONNET" | "CLAUDE_OPUS_46_EU" | "CLAUDE_SONNET_46_EU" | "CLAUDE_HAIKU_45_EU" | "KIMI_K25" | "COMMAND_R_PLUS" | "LLAMA_3_70B_GROQ" | "OPENAI_OSS_20B" | "OPENAI_OSS_120B" | "GEMINI_15_FLASH" | "GEMINI_15_PRO" | "GEMINI_2_FLASH" | "GEMINI_25_FLASH" | "GEMINI_25_PRO" | "GEMINI_3_PRO" | "GEMINI_3_FLASH" | "GEMINI_35_FLASH" | "GEMINI_31_PRO" | "GEMINI_31_FLASH_LITE" | "CLAUDE_3_HAIKU_40k" | "DEEPSEEK_V3" | "DEEPSEEK_R1" | "DEEPSEEK_V4_FLASH" | "DEEPSEEK_V4_PRO" | "PERPLEXITY_SONAR_PRO" | "KEYWORDS_AI" | "AZURE_GPT4_1_MINI" | "AZURE_GPT4_O_MINI") | No |  |
| `agentId` | string | Yes |  |
| `language` | string | No |  |
| `temperature` | number | No |  |
| `responseType` | string ("TYPED" | "PARAGRAPH") | No |  |
| `systemPrompt` | string | No |  |
| `responseLength` | string ("CONCISE" | "NORMAL" | "DETAILED") | No |  |
| `fallbackMessage` | string | No |  |
| `shouldCiteSources` | string | No |  |
| `respondInSameLanguage` | boolean | No |  |
| `searchingStatusMessages` | array | No |  |

### Update profile and widget

**Slug:** `WONDERCHAT_MCP_UPDATE_PROFILE_AND_WIDGET`

Update the agent's identity and widget look: name, tagline, description, avatar/icon, a background colour behind the avatar (pictureBackgroundColor: hex, or null for none; keeps a transparent logo visible on the header), colors (a dark background colour gives a dark widget), header style, font, greeting, message box placeholder and the talking avatar (talkingAvatarEnabled shows a lip-synced face above the chat that reads replies aloud and that visitors can talk to by voice; talkingAvatarFaceId from get_agent_settings talkingAvatarFaces, talkingAvatarVoice from talkingAvatarVoices. Live use is capped by the account's monthly live minutes. Faces made from the owner's photo are created in the dashboard). Only the fields you pass change.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No |  |
| `agentId` | string | Yes |  |
| `tagline` | string | No |  |
| `fontColor` | string | No |  |
| `colorTheme` | string | No |  |
| `pictureUrl` | string | No |  |
| `widgetFont` | string ("INTER" | "SYSTEM" | "GEIST" | "DM_SANS" | "MANROPE" | "PLUS_JAKARTA_SANS" | "POPPINS" | "ROBOTO" | "OPEN_SANS" | "LATO" | "NUNITO_SANS" | "IBM_PLEX_SANS" | "SOURCE_SERIF_4") | No |  |
| `buttonColor` | string | No |  |
| `widgetIconUrl` | string | No |  |
| `backgroundColor` | string | No |  |
| `greetingMessage` | string | No | First message and popup greeting. The popup renders simple markdown: **bold**, *italic*, ~~strike~~, `code`, [label](https://…) links and line breaks. |
| `inputPlaceholder` | string | No | Placeholder in the widget's message box and the greeting popup's reply box, replacing "Start a new message" and "Fill in your details". null restores the defaults. |
| `widgetHeaderStyle` | string ("BRAND" | "SUBTLE") | No |  |
| `talkingAvatarVoice` | string ("marin" | "cedar" | "coral" | "sage" | "ash" | "ballad" | "verse" | "alloy" | "echo" | "shimmer") | No |  |
| `internalDescription` | string | No |  |
| `talkingAvatarFaceId` | string | No |  |
| `talkingAvatarEnabled` | boolean | No |  |
| `pictureBackgroundColor` | string | No |  |

### Update sales roi exclusions

**Slug:** `WONDERCHAT_MCP_UPDATE_SALES_ROI_EXCLUSIONS`

Replaces the Sales ROI exclusions for the space the agent is in with this list. Each rule is an exact email ("ana@acme.com") or a whole domain ("@acme.com"; "acme.com" works too). Pass an empty list to exclude nobody. Call get_sales_roi_exclusions first to add to the current list.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `rules` | array | Yes |  |
| `agentId` | string | Yes |  |

### Update security

**Slug:** `WONDERCHAT_MCP_UPDATE_SECURITY`

Update security: private mode (the widget and /api/v1/chat then need the passphrase, a valid identity token or, for the API, an API key with access to the agent), moderation, spam filter, rate limits, PII redaction, and the domain/IP/country lists. Only the fields you pass change; a list you pass replaces that list. (Google-group access is managed in the dashboard.)

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `isPrivate` | boolean | No |  |
| `passphrase` | string | No |  |
| `enableSpamFilter` | boolean | No |  |
| `piiRedactionLevel` | string ("LIGHT" | "FULL" | "PHI") | No |  |
| `blockedIpAddresses` | array | No |  |
| `rateLimitedMessage` | string | No |  |
| `whitelistedDomains` | array | No |  |
| `allowedCountryCodes` | array | No |  |
| `blockedCountryCodes` | array | No |  |
| `countryBlockMessage` | string | No |  |
| `piiRedactionEnabled` | boolean | No |  |
| `piiRedactionEntities` | array | No |  |
| `rateLimitNumMessages` | integer | No |  |
| `enableOpenAiModeration` | string | No |  |
| `enableReportHarmfulContent` | boolean | No |  |
| `rateLimitFrequencyInSeconds` | integer | No |  |

### Update shopify

**Slug:** `WONDERCHAT_MCP_UPDATE_SHOPIFY`

Link a connected store to the agent (storeId from get_shopify_store.availableStores; this also turns on order tracking and product search and adds the store's policies and pages to the knowledge base), turn order tracking or product search on or off, set how customers identify an order (orderLookupMethod: ORDER_NUMBER_WITH_EMAIL needs both and is the safe default; ORDER_NUMBER_ONLY lets anyone with an order number see it; EMAIL_ONLY; ORDER_NUMBER_AND_EMAIL accepts either), or re-import the store's pages (importStorePages). Pass only what should change.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `storeId` | string | No |  |
| `orderTracking` | boolean | No |  |
| `productSearch` | boolean | No |  |
| `importStorePages` | boolean | No |  |
| `orderLookupMethod` | string ("ORDER_NUMBER_WITH_EMAIL" | "ORDER_NUMBER_ONLY" | "EMAIL_ONLY" | "ORDER_NUMBER_AND_EMAIL") | No |  |

### Update stripe tools

**Slug:** `WONDERCHAT_MCP_UPDATE_STRIPE_TOOLS`

Connect the agent's team to Stripe with a restricted API key (apiKey; Signing in with Stripe is done in the dashboard's Tools tab instead), add the billing tools to an agent whose team is already connected (addTools), disconnect the agent from Stripe (disconnect; with removeApiKey it also removes the team's key, which turns the tools off on every agent of the team that used it), or change one tool (tool plus any of: enabled, whenToUse, inCustomerChat, inInbox, runWithoutApproval for WRITE tools, maxAmount and dailyRunLimit for refunds). Pass only what should change.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tool` | string ("STRIPE_LOOK_UP_BILLING" | "STRIPE_SEND_BILLING_PORTAL" | "STRIPE_CANCEL_SUBSCRIPTION" | "STRIPE_PAUSE_SUBSCRIPTION" | "STRIPE_RESUME_SUBSCRIPTION" | "STRIPE_REFUND_PAYMENT") | No |  |
| `apiKey` | string | No |  |
| `agentId` | string | Yes |  |
| `enabled` | boolean | No |  |
| `inInbox` | boolean | No |  |
| `addTools` | boolean | No |  |
| `maxAmount` | string | No |  |
| `whenToUse` | string | No |  |
| `disconnect` | boolean | No |  |
| `removeApiKey` | boolean | No |  |
| `dailyRunLimit` | string | No |  |
| `inCustomerChat` | boolean | No |  |
| `runWithoutApproval` | boolean | No |  |

### Update ticket

**Slug:** `WONDERCHAT_MCP_UPDATE_TICKET`

Change a ticket's fields. Only the fields you pass change; pass null to clear. assigneeId / teamId from list_ticket_assignees. dueAt is an ISO date. requesterEmail changes who the ticket is with (e.g. a forward filed under the teammate who forwarded it). ccEmails replaces the CC list. waitingOn moves an open ticket to US (we owe a reply) or CUSTOMER (waiting on them), out of any team-defined state. customState moves it into a team-defined state by name (created on the agent if missing; see manage_ticket_states), or null takes it out. category sets its category by path ("Billing" or "Billing › Refunds", from manage_ticket_categories), or null for none; either way AI no longer changes it. issueSummary / resolutionSummary edit the summary written when the ticket closed.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `dueAt` | string | No |  |
| `teamId` | string | No |  |
| `agentId` | string | Yes |  |
| `category` | string | No |  |
| `ccEmails` | array | No |  |
| `priority` | string | No |  |
| `ticketId` | string | Yes |  |
| `waitingOn` | string ("US" | "CUSTOMER") | No |  |
| `assigneeId` | string | No |  |
| `customState` | string | No |  |
| `issueSummary` | string | No |  |
| `requesterName` | string | No |  |
| `requesterEmail` | string | No |  |
| `resolutionSummary` | string | No |  |

### Update ticket settings

**Slug:** `WONDERCHAT_MCP_UPDATE_TICKET_SETTINGS`

Change the agent's inbox follow-ups. Only what you pass changes; null turns a timer off. acknowledgement: email the customer when a new ticket arrives (and when they reply outside business hours); its message can use {customer_name} and {ticket_number}; this is also the chat handover acknowledgement. acknowledgementSendsFor: the full list of keys it is sent for, from get_ticket_settings acknowledgement.sendsFor (handover = chat handovers, hosted = the agent's hosted address, else a mailbox id); passing it turns the acknowledgement on unless acknowledgementEnabled is false. reminderAfterDays / autoCloseAfterDays: days of customer silence (business days with business hours); auto-close counts from the reminder. addHoliday / removeHolidayId manage closed days (YYYY-MM-DD). Needs agent admin rights.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `addHoliday` | object | No |  |
| `reminderMessage` | string | No |  |
| `removeHolidayId` | string | No |  |
| `reminderAfterDays` | string | No |  |
| `autoCloseAfterDays` | string | No |  |
| `reminderWrittenByAi` | boolean | No |  |
| `acknowledgementEnabled` | boolean | No |  |
| `acknowledgementMessage` | string | No |  |
| `acknowledgementSendsFor` | array | No |  |
| `reminderReviewBeforeSending` | boolean | No |  |
| `acknowledgementSuggestArticles` | boolean | No |  |

### Update website crawling

**Slug:** `WONDERCHAT_MCP_UPDATE_WEBSITE_CRAWLING`

Change how the agent's website sources are crawled. crawlLinkedPdfs also downloads the PDFs crawled pages link to and indexes each under its own URL (Scale plan and up; each PDF counts as a page). crawlImages includes page images. urlsToIgnore replaces the list of URLs never crawled (exact URL, `url/**` for everything under it, or a `**` pattern). siteSignIn saves a login for pages behind a login: the crawler signs in on loginUrl before every crawl and recrawl, so member pages stay current without a session cookie. Saving signs in once to test it and fails with the reason if that doesn't work; omit password to keep the saved one; null removes the sign-in. usernameSelector, passwordSelector and submitSelector are optional CSS selectors that replace field detection when it picks the wrong fields (omit to keep, null to clear). Logins that need a code, single sign-on or a CAPTCHA can't be automated. javascriptCrawling loads every website source in a real browser so pages that only show their content after JavaScript runs (common on ASPX/CMS sites) are read in full; slower, and kept for every later recrawl. sessionCookie saves a session cookie (JSON array of {name, value}) sent with every crawl when no sign-in is saved; null clears it. Returns the sign-in status (never the password) and whether JavaScript crawling is on. Only the fields you pass change; settings apply from the next crawl or recrawl.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `agentId` | string | Yes |  |
| `siteSignIn` | string | No |  |
| `crawlImages` | boolean | No |  |
| `urlsToIgnore` | array | No |  |
| `sessionCookie` | string | No |  |
| `crawlLinkedPdfs` | boolean | No |  |
| `javascriptCrawling` | boolean | No |  |
