
Create, train, test and install AI chat agents for websites; read their chats, leads and analytics.
Maintain this server? Claim it
This server signs you in with OAuth, which the playground doesn't support yet. Install it in your MCP client to try it.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http carlychat https://carlychat.com/mcp
Give another CarlyChat account access to a chatbot's dashboard, conversations, and handoff emails. The address needs a CarlyChat account; to only email an address about handoffs, use configure_bot handoffEmails instead.
| Argument | Type | Description |
|---|---|---|
| botId* | string | |
| email* | string |
{
"type": "object",
"required": [
"botId",
"email"
],
"properties": {
"botId": {
"type": "string"
},
"email": {
"type": "string"
}
}
}Train a chatbot with supplied text.
| Argument | Type | Description |
|---|---|---|
| name* | string | |
| text* | string | |
| botId* | string |
{
"type": "object",
"required": [
"botId",
"name",
"text"
],
"properties": {
"name": {
"type": "string"
},
"text": {
"type": "string"
},
"botId": {
"type": "string"
}
}
}Crawl a public website and train a chatbot on its readable pages. On a plan with daily website updates, the source re-crawls daily from the start (set_source_refresh turns that off).
| Argument | Type | Description |
|---|---|---|
| url* | string | |
| botId* | string | |
| exclude | array | Paths to leave out, such as /blog/tags/* (a * matches anything) or /careers. Pages that ask search engines not to index them (robots noindex) are always left out |
| maxPages | integer |
{
"type": "object",
"required": [
"botId",
"url"
],
"properties": {
"url": {
"type": "string"
},
"botId": {
"type": "string"
},
"exclude": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 50,
"description": "Paths to leave out, such as /blog/tags/* (a * matches anything) or /careers. Pages that ask search engines not to index them (robots noindex) are always left out"
},
"maxPages": {
"type": "integer",
"default": 10000,
"maximum": 10000,
"minimum": 1
}
}
}Update a chatbot's behavior, personality, procedures, handoff rules, suggested questions, messages, visibility, domains, lead capture, color, or signed webhook.
| Argument | Type | Description |
|---|---|---|
| name | string | |
| botId* | string | |
| color | string | Six-digit hex color |
| prompt | string | |
| aiLabel | boolean | Legacy setting, accepted for compatibility. The chat header no longer displays an AI label. |
| leadWhen | string | Optional: when the agent should offer the email card, in plain language. Empty means buying interest (pricing, a demo, a quote, setting it up) or a question the team must follow up on |
| readPage | boolean | With each message the widget sends the visible text of the page the visitor is on, and the answer can use it (on by default). Form fields are never sent; elements with data-carlychat-ignore are left out. The text is used for that answer only, never kept as knowledge |
| avatarUrl | string | Photo or logo in the chat header: a public https image address (empty for the agent's initial) |
| guardrails | string | |
| leadNotify | boolean | Email the owner, teammates and handoff emails about each new lead (default true) |
| procedures | array | Multi-step playbooks the agent follows for specific situations |
| visibility | string | |
| webhookUrl | string | Public webhook endpoint for signed CRM and automation events |
| widgetCopy | object | Replace the locale-specific visitor copy, keyed by language code. Omitted text uses the bot's original copy. |
| csatEnabled | boolean | Ask for a 1-5 rating after a confirmed resolution |
| handoffMode | string | What happens when a visitor asks for a person. inbox (default): the conversation goes to your team's inbox and a teammate replies in the chat. email: the visitor leaves an email and the team replies there, while the AI keeps answering. booking: the visitor gets the chatbot's booking calendar (needs a booking action) and the AI keeps answering. The widget's button reads Talk to a human, Email the team or Book a call to match |
| leadMessage | string | The text on the email card |
| personality | object | Tone of voice and answer style |
| showSources | boolean | Show the sources an answer came from under it in the widget |
| handoffRules | object | When the agent escalates to a person |
| showFeedback | boolean | Show Helpful / Not helpful buttons under answers in the widget |
| handoffEmails | array | Addresses emailed when a visitor asks for a person, e.g. a support inbox. They need no CarlyChat account. Replaces the list |
| targetExclude | array | URL rules where the website widget must not appear |
| targetInclude | array | URL rules where the website widget may appear |
| textAnimation | string | How answers appear while they stream: fade (words fade in), blur (words sharpen from a blur), typewriter, instant (typing dots then the whole answer), or classic (stream with a block cursor) |
| trackRequests | boolean | Keep a list of what visitors ask for that you don't offer yet (on by default); list_requests reads it |
| allowedDomains | array | Sites the widget takes chats on (empty: anywhere). A message from another site gets a short note and the booking calendar instead of an answer, is counted in get_analytics blockedSites, and the owner is emailed at most once a day |
| handoffEnabled | boolean | Offer visitors a person (on by default). When false, no handoff rule runs: get_bot shows handoffRules.active: false, and the rules are kept for when it is turned back on |
| handoffMessage | string | |
| leadCollection | boolean | Collect leads without blocking the chat: an email card under the first answer, offered once more by the agent when the visitor is interested or needs the team. Visitors can skip it. Emails typed into the chat are saved as leads either way |
| proactiveDelay | integer | Seconds before the teaser appears |
| welcomeMessage | string | |
| widgetLanguage | object | Visitor widget interface languages. Automatic mode uses the visitor's preference, detected language and browser preferences before the fallback. |
| fallbackMessage | string | |
| targetKnownOnly | boolean | Only show the widget after signed customer identity is supplied |
| proactiveMessage | string | Teaser shown next to the launcher after a delay; empty disables |
| replyTimeMessage | string | Status line under the agent name, e.g. 'Replies in a few minutes'; empty for none |
| resolutionPrompt | boolean | Ask 'Did that answer your question?' after answers |
| suggestedQuestions | array | Up to three conversation starters shown before the first message (more are dropped) |
{
"type": "object",
"required": [
"botId"
],
"properties": {
"name": {
"type": "string"
},
"botId": {
"type": "string"
},
"color": {
"type": "string",
"description": "Six-digit hex color"
},
"prompt": {
"type": "string"
},
"aiLabel": {
"type": "boolean",
"description": "Legacy setting, accepted for compatibility. The chat header no longer displays an AI label."
},
"leadWhen": {
"type": "string",
"description": "Optional: when the agent should offer the email card, in plain language. Empty means buying interest (pricing, a demo, a quote, setting it up) or a question the team must follow up on"
},
"readPage": {
"type": "boolean",
"description": "With each message the widget sends the visible text of the page the visitor is on, and the answer can use it (on by default). Form fields are never sent; elements with data-carlychat-ignore are left out. The text is used for that answer only, never kept as knowledge"
},
"avatarUrl": {
"type": "string",
"description": "Photo or logo in the chat header: a public https image address (empty for the agent's initial)"
},
"guardrails": {
"type": "string"
},
"leadNotify": {
"type": "boolean",
"description": "Email the owner, teammates and handoff emails about each new lead (default true)"
},
"procedures": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"steps"
],
"properties": {
"name": {
"type": "string"
},
"when": {
"type": "string",
"description": "When to use this procedure"
},
"steps": {
"type": "string",
"description": "Numbered steps in plain language"
},
"enabled": {
"type": "boolean"
},
"whenNot": {
"type": "string",
"description": "When not to use it"
}
}
},
"description": "Multi-step playbooks the agent follows for specific situations"
},
"visibility": {
"enum": [
"public",
"private"
],
"type": "string"
},
"webhookUrl": {
"type": "string",
"description": "Public webhook endpoint for signed CRM and automation events"
},
"widgetCopy": {
"type": "object",
"properties": {
"ar": {
"type": "object",
"properties": {
"leadMessage": {
"type": "string"
},
"handoffMessage": {
"type": "string"
},
"welcomeMessage": {
"type": "string"
},
"proactiveMessage": {
"type": "string"
},
"replyTimeMessage": {
"type": "string"
},
"suggestedQuestions": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"de": {
"type": "object",
"properties": {
"leadMessage": {
"type": "string"
},
"handoffMessage": {
"type": "string"
},
"welcomeMessage": {
"type": "string"
},
"proactiveMessage": {
"type": "string"
},
"replyTimeMessage": {
"type": "string"
},
"suggestedQuestions": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"en": {
"type": "object",
"properties": {
"leadMessage": {
"type": "string"
},
"handoffMessage": {
"type": "string"
},
"welcomeMessage": {
"type": "string"
},
"proactiveMessage": {
"type": "string"
},
"replyTimeMessage": {
"type": "string"
},
"suggestedQuestions": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"es": {
"type": "object",
"properties": {
"leadMessage": {
"type": "string"
},
"handoffMessage": {
"type": "string"
},
"welcomeMessage": {
"type": "string"
},
"proactiveMessage": {
"type": "string"
},
"replyTimeMessage": {
"type": "string"
},
"suggestedQuestions": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"fa": {
"type": "object",
"properties": {
"leadMessage": {
"type": "string"
},
"handoffMessage": {
"type": "string"
},
"welcomeMessage": {
"type": "string"
},
"proactiveMessage": {
"type": "string"
},
"replyTimeMessage": {
"type": "string"
},
"suggestedQuestions": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"fr": {
"type": "object",
"properties": {
"leadMessage": {
"type": "string"
},
"handoffMessage": {
"type": "string"
},
"welcomeMessage": {
"type": "string"
},
"proactiveMessage": {
"type": "string"
},
"replyTimeMessage": {
"type": "string"
},
"suggestedQuestions": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"description": "Replace the locale-specific visitor copy, keyed by language code. Omitted text uses the bot's original copy."
},
"csatEnabled": {
"type": "boolean",
"description": "Ask for a 1-5 rating after a confirmed resolution"
},
"handoffMode": {
"enum": [
"inbox",
"email",
"booking"
],
"type": "string",
"description": "What happens when a visitor asks for a person. inbox (default): the conversation goes to your team's inbox and a teammate replies in the chat. email: the visitor leaves an email and the team replies there, while the AI keeps answering. booking: the visitor gets the chatbot's booking calendar (needs a booking action) and the AI keeps answering. The widget's button reads Talk to a human, Email the team or Book a call to match"
},
"leadMessage": {
"type": "string",
"description": "The text on the email card"
},
"personality": {
"type": "object",
"properties": {
"tone": {
"enum": [
"friendly",
"neutral",
"matter_of_fact",
"professional",
"humorous"
],
"type": "string"
},
"emoji": {
"type": "boolean"
},
"length": {
"enum": [
"concise",
"balanced",
"thorough"
],
"type": "string"
},
"clarify": {
"type": "boolean",
"description": "Ask a clarifying question when the request is ambiguous"
},
"language": {
"type": "string",
"description": "'auto' to match the visitor, or a language name such as 'Spanish'"
},
"directness": {
"enum": [
"direct",
"careful"
],
"type": "string",
"description": "direct (default): answers with confidence and no hedging; careful: spells out conditions and suggests confirming with the team"
}
},
"description": "Tone of voice and answer style"
},
"showSources": {
"type": "boolean",
"description": "Show the sources an answer came from under it in the widget"
},
"handoffRules": {
"type": "object",
"properties": {
"pauseAi": {
"type": "boolean",
"description": "Keep the AI quiet once a person has the conversation: from the request on in the inbox mode, and in any mode once a teammate replies"
},
"emailTeam": {
"type": "boolean",
"description": "Email the owner, teammates and handoffEmails when a visitor is handed to a person (off by default)"
},
"onRequest": {
"type": "boolean",
"description": "Escalate when the visitor asks for a person"
},
"afterMisses": {
"type": "integer",
"description": "Offer a teammate after this many consecutive unanswered questions (0 disables)"
},
"collectEmail": {
"type": "boolean",
"description": "Ask for an email at handoff when none is known"
},
"onFrustration": {
"type": "boolean"
},
"onNegativeFeedback": {
"type": "boolean"
}
},
"description": "When the agent escalates to a person"
},
"showFeedback": {
"type": "boolean",
"description": "Show Helpful / Not helpful buttons under answers in the widget"
},
"handoffEmails": {
"type": "array",
"items": {
"type": "string"
},
"description": "Addresses emailed when a visitor asks for a person, e.g. a support inbox. They need no CarlyChat account. Replaces the list"
},
"targetExclude": {
"type": "array",
"items": {
"type": "string"
},
"description": "URL rules where the website widget must not appear"
},
"targetInclude": {
"type": "array",
"items": {
"type": "string"
},
"description": "URL rules where the website widget may appear"
},
"textAnimation": {
"enum": [
"fade",
"blur",
"typewriter",
"instant",
"classic"
],
"type": "string",
"description": "How answers appear while they stream: fade (words fade in), blur (words sharpen from a blur), typewriter, instant (typing dots then the whole answer), or classic (stream with a block cursor)"
},
"trackRequests": {
"type": "boolean",
"description": "Keep a list of what visitors ask for that you don't offer yet (on by default); list_requests reads it"
},
"allowedDomains": {
"type": "array",
"items": {
"type": "string"
},
"description": "Sites the widget takes chats on (empty: anywhere). A message from another site gets a short note and the booking calendar instead of an answer, is counted in get_analytics blockedSites, and the owner is emailed at most once a day"
},
"handoffEnabled": {
"type": "boolean",
"description": "Offer visitors a person (on by default). When false, no handoff rule runs: get_bot shows handoffRules.active: false, and the rules are kept for when it is turned back on"
},
"handoffMessage": {
"type": "string"
},
"leadCollection": {
"type": "boolean",
"description": "Collect leads without blocking the chat: an email card under the first answer, offered once more by the agent when the visitor is interested or needs the team. Visitors can skip it. Emails typed into the chat are saved as leads either way"
},
"proactiveDelay": {
"type": "integer",
"description": "Seconds before the teaser appears"
},
"welcomeMessage": {
"type": "string"
},
"widgetLanguage": {
"type": "object",
"properties": {
"mode": {
"enum": [
"auto",
"fixed"
],
"type": "string"
},
"enabled": {
"type": "array",
"items": {
"enum": [
"en",
"es",
"fr",
"de",
"fa",
"ar"
],
"type": "string"
}
},
"defaultLocale": {
"enum": [
"en",
"es",
"fr",
"de",
"fa",
"ar"
],
"type": "string"
}
},
"description": "Visitor widget interface languages. Automatic mode uses the visitor's preference, detected language and browser preferences before the fallback."
},
"fallbackMessage": {
"type": "string"
},
"targetKnownOnly": {
"type": "boolean",
"description": "Only show the widget after signed customer identity is supplied"
},
"proactiveMessage": {
"type": "string",
"description": "Teaser shown next to the launcher after a delay; empty disables"
},
"replyTimeMessage": {
"type": "string",
"description": "Status line under the agent name, e.g. 'Replies in a few minutes'; empty for none"
},
"resolutionPrompt": {
"type": "boolean",
"description": "Ask 'Did that answer your question?' after answers"
},
"suggestedQuestions": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 3,
"description": "Up to three conversation starters shown before the first message (more are dropped)"
}
}
}Connect Attio, Carly CRM, HubSpot, or an arbitrary CRM to signed customer, conversation, handoff, action, and feedback events. Each named preset includes an explicit customer, conversation, and ticket object mapping.
| Argument | Type | Description |
|---|---|---|
| botId* | string | |
| events | array | |
| mapping | object | Optional provider-neutral customer, conversation, and ticket object mapping |
| endpoint* | string | Public HTTP or HTTPS endpoint that accepts the CarlyChat CRM event contract |
| provider* | string | |
| installActions | boolean | Install managed get_customer_record and create_support_ticket actions |
| actionsEndpoint | string | Optional endpoint for signed customer lookups and ticket creation |
{
"type": "object",
"required": [
"botId",
"provider",
"endpoint"
],
"properties": {
"botId": {
"type": "string"
},
"events": {
"type": "array",
"items": {
"enum": [
"contact.upserted",
"conversation.started",
"lead.captured",
"message.created",
"agent.message_created",
"handoff.requested",
"action.completed",
"booking.completed",
"feedback.submitted",
"conversation.resolved",
"conversation.resumed",
"csat.submitted"
],
"type": "string"
}
},
"mapping": {
"type": "object",
"properties": {
"ticket": {
"type": "object",
"properties": {
"object": {
"type": "string"
},
"operation": {
"enum": [
"create",
"upsert",
"update"
],
"type": "string"
},
"parentObject": {
"type": "string"
},
"matchingAttribute": {
"type": "string"
}
}
},
"customer": {
"type": "object",
"properties": {
"object": {
"type": "string"
},
"operation": {
"enum": [
"create",
"upsert",
"update"
],
"type": "string"
},
"matchingAttribute": {
"type": "string"
}
}
},
"conversation": {
"type": "object",
"properties": {
"object": {
"type": "string"
},
"operation": {
"enum": [
"create",
"upsert",
"update"
],
"type": "string"
},
"parentObject": {
"type": "string"
},
"matchingAttribute": {
"type": "string"
}
}
}
},
"description": "Optional provider-neutral customer, conversation, and ticket object mapping"
},
"endpoint": {
"type": "string",
"description": "Public HTTP or HTTPS endpoint that accepts the CarlyChat CRM event contract"
},
"provider": {
"enum": [
"attio",
"carly",
"hubspot",
"custom"
],
"type": "string"
},
"installActions": {
"type": "boolean",
"description": "Install managed get_customer_record and create_support_ticket actions"
},
"actionsEndpoint": {
"type": "string",
"description": "Optional endpoint for signed customer lookups and ticket creation"
}
}
}Configure the provider-neutral signed integration webhook. Use this for an internal system, automation platform, or CRM without a named connector.
| Argument | Type | Description |
|---|---|---|
| botId* | string | |
| events | array | |
| mapping | object | |
| endpoint* | string | Public HTTP or HTTPS endpoint that accepts CarlyChat integration events |
| installActions | boolean | |
| actionsEndpoint | string | Optional endpoint for signed live-data and write actions |
{
"type": "object",
"required": [
"botId",
"endpoint"
],
"properties": {
"botId": {
"type": "string"
},
"events": {
"type": "array",
"items": {
"enum": [
"contact.upserted",
"conversation.started",
"lead.captured",
"message.created",
"agent.message_created",
"handoff.requested",
"action.completed",
"booking.completed",
"feedback.submitted",
"conversation.resolved",
"conversation.resumed",
"csat.submitted"
],
"type": "string"
}
},
"mapping": {
"type": "object",
"properties": {
"ticket": {
"type": "object",
"properties": {
"object": {
"type": "string"
},
"operation": {
"enum": [
"create",
"upsert",
"update"
],
"type": "string"
},
"parentObject": {
"type": "string"
},
"matchingAttribute": {
"type": "string"
}
}
},
"customer": {
"type": "object",
"properties": {
"object": {
"type": "string"
},
"operation": {
"enum": [
"create",
"upsert",
"update"
],
"type": "string"
},
"matchingAttribute": {
"type": "string"
}
}
},
"conversation": {
"type": "object",
"properties": {
"object": {
"type": "string"
},
"operation": {
"enum": [
"create",
"upsert",
"update"
],
"type": "string"
},
"parentObject": {
"type": "string"
},
"matchingAttribute": {
"type": "string"
}
}
}
}
},
"endpoint": {
"type": "string",
"description": "Public HTTP or HTTPS endpoint that accepts CarlyChat integration events"
},
"installActions": {
"type": "boolean"
},
"actionsEndpoint": {
"type": "string",
"description": "Optional endpoint for signed live-data and write actions"
}
}
}Give the customer-facing support agent a signed server action, inline form, browser function, direct Carly booking page, or qualification-and-booking workflow.
| Argument | Type | Description |
|---|---|---|
| name* | string | |
| type* | string | |
| botId* | string | |
| method | string | |
| endpoint | string | |
| bookingUrl | string | Public Carly booking page URL, required for booking actions |
| description* | string | |
| inputSchema | object | JSON Schema object with flat string, number, integer, or boolean properties |
| assistantFormUrl | string | Public Carly Assistant form URL, required for qualification actions |
| confirmationMessage | string | |
| requiresConfirmation | boolean | |
| requireVerifiedIdentity | boolean |
{
"type": "object",
"required": [
"botId",
"name",
"description",
"type"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"enum": [
"server",
"client",
"form",
"booking",
"qualification"
],
"type": "string"
},
"botId": {
"type": "string"
},
"method": {
"enum": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE"
],
"type": "string"
},
"endpoint": {
"type": "string"
},
"bookingUrl": {
"type": "string",
"description": "Public Carly booking page URL, required for booking actions"
},
"description": {
"type": "string"
},
"inputSchema": {
"type": "object",
"description": "JSON Schema object with flat string, number, integer, or boolean properties"
},
"assistantFormUrl": {
"type": "string",
"description": "Public Carly Assistant form URL, required for qualification actions"
},
"confirmationMessage": {
"type": "string"
},
"requiresConfirmation": {
"type": "boolean"
},
"requireVerifiedIdentity": {
"type": "boolean"
}
}
}Create a support chatbot. Optionally crawl a website as its first knowledge source.
| Argument | Type | Description |
|---|---|---|
| name* | string | Chatbot name |
| prompt | string | Optional behavior instructions |
| websiteUrl | string | Optional public website to crawl |
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Chatbot name"
},
"prompt": {
"type": "string",
"description": "Optional behavior instructions"
},
"websiteUrl": {
"type": "string",
"description": "Optional public website to crawl"
}
}
}Remove an action from a support agent.
| Argument | Type | Description |
|---|---|---|
| botId* | string | |
| actionId* | string |
{
"type": "object",
"required": [
"botId",
"actionId"
],
"properties": {
"botId": {
"type": "string"
},
"actionId": {
"type": "string"
}
}
}Permanently delete a chatbot with its sources, actions, and conversations, e.g. to start over within the plan's chatbot limit. Pass its exact name as confirmName.
| Argument | Type | Description |
|---|---|---|
| botId* | string | |
| confirmName* | string | The chatbot's exact name, from list_bots, to show this is the one to delete |
{
"type": "object",
"required": [
"botId",
"confirmName"
],
"properties": {
"botId": {
"type": "string"
},
"confirmName": {
"type": "string",
"description": "The chatbot's exact name, from list_bots, to show this is the one to delete"
}
}
}Remove one knowledge source from a chatbot, e.g. before crawling a site again. get_bot lists source IDs.
| Argument | Type | Description |
|---|---|---|
| botId* | string | |
| sourceId* | string |
{
"type": "object",
"required": [
"botId",
"sourceId"
],
"properties": {
"botId": {
"type": "string"
},
"sourceId": {
"type": "string"
}
}
}Get answer rate, usage, feedback, and common or unanswered questions.
| Argument | Type | Description |
|---|---|---|
| botId* | string |
{
"type": "object",
"required": [
"botId"
],
"properties": {
"botId": {
"type": "string"
}
}
}Get settings, sources, analytics, and usage for one chatbot. usage.messages is this month's messages counted against the plan (every answer, test chats included), usage.testMessages how many of those were test chats, and usage.plan what the account's plan allows and has left.
| Argument | Type | Description |
|---|---|---|
| botId* | string |
{
"type": "object",
"required": [
"botId"
],
"properties": {
"botId": {
"type": "string"
}
}
}Get the complete transcript and customer context for one conversation: the page each visitor message was written on, where the visitor came from (referrer, UTM, landing page), the pages they viewed before and while chatting, device, country and language.
| Argument | Type | Description |
|---|---|---|
| botId* | string | |
| conversationId* | string |
{
"type": "object",
"required": [
"botId",
"conversationId"
],
"properties": {
"botId": {
"type": "string"
},
"conversationId": {
"type": "string"
}
}
}Return all matching conversations for a customer email or external ID.
| Argument | Type | Description |
|---|---|---|
| botId* | string | |
| string | ||
| externalId | string |
{
"type": "object",
"required": [
"botId"
],
"properties": {
"botId": {
"type": "string"
},
"email": {
"type": "string"
},
"externalId": {
"type": "string"
}
}
}Return the widget script to put on the site, plus hosted chat, iframe, REST, and MCP connection details for a chatbot. If the site already loads another CarlyChat chatbot, existingWidget says which: replace that script tag rather than adding a second. The identity and action signing secrets are left out unless includeSecrets is true; ask for them only when setting up verified identity or a server action, and keep them on the server.
| Argument | Type | Description |
|---|---|---|
| botId* | string | |
| includeSecrets | boolean | Also return the identity and action signing secrets (default false) |
{
"type": "object",
"required": [
"botId"
],
"properties": {
"botId": {
"type": "string"
},
"includeSecrets": {
"type": "boolean",
"description": "Also return the identity and action signing secrets (default false)"
}
}
}A link that opens the chatbot on your own site as a test chat, for a person to try the live widget: chats from that browser tab are test chats (kept out of analytics, leads and notifications) for 24 hours, and the widget says so.
| Argument | Type | Description |
|---|---|---|
| url | string | The page to test on (default: the chatbot's site) |
| botId* | string |
{
"type": "object",
"required": [
"botId"
],
"properties": {
"url": {
"type": "string",
"description": "The page to test on (default: the chatbot's site)"
},
"botId": {
"type": "string"
}
}
}List the live-data, form, and browser actions available to a support agent.
| Argument | Type | Description |
|---|---|---|
| botId* | string |
{
"type": "object",
"required": [
"botId"
],
"properties": {
"botId": {
"type": "string"
}
}
}List chatbots visible to this API key or account: sources, real and test conversations, and usage (this month's messages counted against the plan, test chats included, and how many were tests).
No arguments.
{
"type": "object",
"properties": {}
}List persistent customer profiles, verified identities, and custom attributes.
| Argument | Type | Description |
|---|---|---|
| botId* | string | |
| limit | integer | |
| query | string |
{
"type": "object",
"required": [
"botId"
],
"properties": {
"botId": {
"type": "string"
},
"limit": {
"type": "integer",
"maximum": 200,
"minimum": 1
},
"query": {
"type": "string"
}
}
}Search conversations by message text, customer identity, or lead status. Each result includes the visitor's last page, where they came from, country and device.
| Argument | Type | Description |
|---|---|---|
| botId* | string | |
| limit | integer | |
| query | string | |
| status | string | needs_human: waiting for, or with, a teammate |
| leadsOnly | boolean | |
| externalId | string | |
| includeTests | boolean | Include test chats (left out by default) |
{
"type": "object",
"required": [
"botId"
],
"properties": {
"botId": {
"type": "string"
},
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"query": {
"type": "string"
},
"status": {
"enum": [
"needs_human",
"open",
"resolved",
"closed"
],
"type": "string",
"description": "needs_human: waiting for, or with, a teammate"
},
"leadsOnly": {
"type": "boolean"
},
"externalId": {
"type": "string"
},
"includeTests": {
"type": "boolean",
"description": "Include test chats (left out by default)"
}
}
}List captured customer emails, identities, metadata, and their conversation IDs.
| Argument | Type | Description |
|---|---|---|
| botId* | string | |
| limit | integer |
{
"type": "object",
"required": [
"botId"
],
"properties": {
"botId": {
"type": "string"
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1
}
}
}What visitors asked for that the business doesn't offer yet (features, integrations, services), most asked first, with the newest requests and the conversations they came from. A to-build list from real chats.
| Argument | Type | Description |
|---|---|---|
| botId* | string | |
| limit | integer |
{
"type": "object",
"required": [
"botId"
],
"properties": {
"botId": {
"type": "string"
},
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
}
}
}Mark conversations as test chats so they stop counting in analytics, the requests list and leads: every conversation whose first visitor message contains `matching` (such as a prefix the team typed while testing), and any conversationIds listed. Returns how many were marked.
| Argument | Type | Description |
|---|---|---|
| botId* | string | |
| matching | string | Text in the first visitor message, at least 6 characters |
| conversationIds | array |
{
"type": "object",
"required": [
"botId"
],
"properties": {
"botId": {
"type": "string"
},
"matching": {
"type": "string",
"description": "Text in the first visitor message, at least 6 characters"
},
"conversationIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
}Remove a teammate's access to a chatbot.
| Argument | Type | Description |
|---|---|---|
| botId* | string | |
| email* | string |
{
"type": "object",
"required": [
"botId",
"email"
],
"properties": {
"botId": {
"type": "string"
},
"email": {
"type": "string"
}
}
}Send a message to the visitor as a teammate. It appears in their open chat within seconds, and the AI stops answering that conversation until it is handed back.
| Argument | Type | Description |
|---|---|---|
| text* | string | The message the visitor sees |
| botId* | string | |
| agentName | string | Name shown to the visitor; defaults to the account's name, or Support |
| conversationId* | string |
{
"type": "object",
"required": [
"botId",
"conversationId",
"text"
],
"properties": {
"text": {
"type": "string",
"description": "The message the visitor sees"
},
"botId": {
"type": "string"
},
"agentName": {
"type": "string",
"description": "Name shown to the visitor; defaults to the account's name, or Support"
},
"conversationId": {
"type": "string"
}
}
}Set the paths a website source leaves out, such as listing, tag or archive pages that crowd out real answers. Pages already learned under those paths are removed at once, and later crawls skip them. Replaces the list; an empty list leaves nothing out. get_bot shows each source's exclude list.
| Argument | Type | Description |
|---|---|---|
| botId* | string | |
| exclude* | array | Paths to leave out, such as /blog/tags/* (a * matches anything) or /careers. Pages that ask search engines not to index them (robots noindex) are always left out |
| sourceId* | string |
{
"type": "object",
"required": [
"botId",
"sourceId",
"exclude"
],
"properties": {
"botId": {
"type": "string"
},
"exclude": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 50,
"description": "Paths to leave out, such as /blog/tags/* (a * matches anything) or /careers. Pages that ask search engines not to index them (robots noindex) are always left out"
},
"sourceId": {
"type": "string"
}
}
}Set how often a website or page source is crawled again, the dashboard's "Updates": weekly (where a new site starts on Growth), daily, or off. get_bot lists source IDs and each one's refreshHours.
| Argument | Type | Description |
|---|---|---|
| botId* | string | |
| daily | boolean | Older form: true is every: daily, false is every: off |
| every | string | |
| hours | integer | Any interval in hours instead of every, on accounts that allow it |
| sourceId* | string |
{
"type": "object",
"required": [
"botId",
"sourceId"
],
"properties": {
"botId": {
"type": "string"
},
"daily": {
"type": "boolean",
"description": "Older form: true is every: daily, false is every: off"
},
"every": {
"enum": [
"weekly",
"daily",
"off"
],
"type": "string"
},
"hours": {
"type": "integer",
"minimum": 1,
"description": "Any interval in hours instead of every, on accounts that allow it"
},
"sourceId": {
"type": "string"
}
}
}Chat with a chatbot as a visitor would, as a test. Pass context (the page's setContext values) and pageText (the page's visible text, which the widget sends with each message) to check answers that use them. It gets the same answers, booking calendar, email card and handoff a visitor gets, on the page you name, but the chat is kept out of analytics, the requests list, leads, webhooks, CRM events and team emails, and works on any site. Pass the returned conversationId to continue the chat. Use it to check a chatbot after changing it, instead of chatting through the live widget.
| Argument | Type | Description |
|---|---|---|
| page | string | The page the visitor is on, e.g. https://example.com/pricing (default: the chatbot's site) |
| botId* | string | |
| context | object | What the page passes with CarlyChat.setContext(), e.g. {"plan": "growth", "productId": "sku_123"}: the answer gets it exactly as from the widget. A pageText key here is taken as pageText |
| message* | string | What the visitor types |
| pageText | string | The visible text of the page, as the widget sends it with each message when readPage is on (up to 8,000 characters), so you can check answers about what a page shows before installing |
| pageTitle | string | |
| conversationId | string | Continue this test chat |
{
"type": "object",
"required": [
"botId",
"message"
],
"properties": {
"page": {
"type": "string",
"description": "The page the visitor is on, e.g. https://example.com/pricing (default: the chatbot's site)"
},
"botId": {
"type": "string"
},
"context": {
"type": "object",
"description": "What the page passes with CarlyChat.setContext(), e.g. {\"plan\": \"growth\", \"productId\": \"sku_123\"}: the answer gets it exactly as from the widget. A pageText key here is taken as pageText"
},
"message": {
"type": "string",
"description": "What the visitor types"
},
"pageText": {
"type": "string",
"description": "The visible text of the page, as the widget sends it with each message when readPage is on (up to 8,000 characters), so you can check answers about what a page shows before installing"
},
"pageTitle": {
"type": "string"
},
"conversationId": {
"type": "string",
"description": "Continue this test chat"
}
}
}Send a signed example customer event and return its delivery result.
| Argument | Type | Description |
|---|---|---|
| botId* | string |
{
"type": "object",
"required": [
"botId"
],
"properties": {
"botId": {
"type": "string"
}
}
}Send a signed example event to the configured integration webhook and return its delivery result.
| Argument | Type | Description |
|---|---|---|
| botId* | string |
{
"type": "object",
"required": [
"botId"
],
"properties": {
"botId": {
"type": "string"
}
}
}Take a conversation over from the AI, hand it back to the AI, or mark it open, resolved or closed.
| Argument | Type | Description |
|---|---|---|
| botId* | string | |
| status | string | |
| resumeAi | boolean | Hand the conversation back to the AI |
| takeOver | boolean | Pause the AI so a teammate can answer |
| conversationId* | string |
{
"type": "object",
"required": [
"botId",
"conversationId"
],
"properties": {
"botId": {
"type": "string"
},
"status": {
"enum": [
"open",
"resolved",
"closed"
],
"type": "string"
},
"resumeAi": {
"type": "boolean",
"description": "Hand the conversation back to the AI"
},
"takeOver": {
"type": "boolean",
"description": "Pause the AI so a teammate can answer"
},
"conversationId": {
"type": "string"
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Dec 3, 2026.