https://api.bevits.com/mcp · Transport: Streamable HTTP ·
Authentication: OAuth 2.1 · Access: read and optional write filtered
by your account permissions · 66 read tools + 68 write toolsmcp:read scope unlocks read tools; the mcp:write scope (the Create automations, emails and campaigns option on the authorization screen) unlocks the write tools your role allows (see Permissions by operation).
Connect in Claude (claude.ai and desktop app)
This is the no-terminal path. Claude reaches the Bevits server from Anthropic’s cloud, so all you need is the public endpoint address.Open Customize → Connectors
Add a custom connector
Connect your organization
Turn the connector on in a chat
Connect in the terminal (Claude Code and Codex)
Add Bevits to your client
Authorize your organization
Confirm the connection
What you can do
CRM and customers
Purchases and revenue
Segments
Build segments and tags
Sales recovery
Campaigns
Create automations
Create and send WhatsApp campaigns
Set up the store with recipes
Emails and campaigns
Products, customer journey, and RFM
Stop flows and campaigns
- “Which UTMs drove the most sales in the last 7 days?”
- “What is the recovery rate and recovered revenue of my abandoned-cart flow?”
- “Which message in the recovery sequence converts best?”
- “What was this month’s average order value compared to last month?”
- “Who are the top 20 spenders in the VIP segment and what did they buy?”
- “Which WhatsApp template had the worst delivery rate?”
- “Is this customer subscribed? Which tags and attributes do they have?”
- “Which flows are active and how many times has each one run?”
- “Create a flow that reminds customers on WhatsApp when a boleto is still unpaid after 1 day.”
- “Create a Black Friday WhatsApp campaign with the banner image, the customer’s name, and a button to the deals page.”
- “What is my store missing? Set up the basic automations and show me the plan first.”
- “Import this email I used to send from another tool and prepare a campaign for the Champions.”
- “Create a segment with customers who have available giftback that expires in the next 7 days.”
- “How many customers received giftback in the last 90 days and let it expire without using it?”
- “Tag the 50 top-spending customers as VIP.”
- “How did sales do in the last 30 days compared to the 30 before? How much did giftback bring in?”
- “Who clicked the button in the Black Friday WhatsApp campaign?”
- “How many emails from the last campaign bounced, and how many people unsubscribed?”
- “Why didn’t Ana get the abandoned cart message yesterday?”
- “Is my email domain verified? How many Official WhatsApp credits do I have left?”
- “What happened with this customer? Which flows are they in, which messages did they get, and do they have cashback to spend?”
- “How many customers are in each RFM segment? List the ones at risk.”
- “Which are my 10 best-selling products? Create a segment with who bought the first one.”
- “Cancel the Black Friday WhatsApp campaign and tell me how many messages already went out.”
Tool catalog
Read tools (readOnlyHint) are idempotent and never create, change, or delete
data. Write tools only show up when the connection has the mcp:write scope
and your account has the matching permission (see
Permissions by operation). No tool accepts an
organization ID — the scope always comes from the token.
Identity
Customers
Purchases
bevits_send_event already record the sale, so bevits_create_purchase is optional: with the event’s order_id as external_id, both meet on the same purchase and the sale is never counted twice. Automations run on events, never on bevits_create_purchase. With a connected store, the store is the account’s sales source and bevits_create_purchase is refused (see Sales reported through the API).
Segments
Tags and attributes
Flows and campaigns
Building automations
Creating WhatsApp campaigns
Sending
Templates and campaign drafts
Account, recipes, emails, and brand
Customers and settings
Analysis and whole-audience actions
Dashboard, reports, logs, and account status
Products, customer journey, and RFM
Stopping flows and campaigns
Custom events
Webhooks
Available filters
bevits_list_customers
bevits_list_purchases
bevits_get_purchase_stats
Takes exactly the same filters as bevits_list_purchases (UTM included), plus
two parameters:
purchase_count,
customer_count, revenue_in_cents, average_ticket_in_cents) and, when
group_by is set, a groups list ordered by revenue — orders without that UTM
show up as key: null. groups_truncated tells you when more groups exist
beyond group_limit.
bevits_list_segments accepts q. bevits_list_segment_customers accepts every
bevits_list_customers filter plus sort (updated or total_spent), and
bevits_list_customer_purchases accepts every bevits_list_purchases filter.
bevits_get_segment also returns the segment type (type: filters, static,
rfm, or campaign_engagement) and, for filter segments, match and
conditions in the same format bevits_create_segment and
bevits_update_segment take (see Create and edit segments).
Sales recovery metrics
bevits_get_flow_metrics answers the cart-recovery questions from the
attribution Bevits already writes on every send:
since and until for
another period. The numbers match the Performance mode inside the flow
builder.
Create and activate automations
With writing allowed, the agent builds a flow from what you describe in the chat — for example, “remind customers on WhatsApp when a boleto is still unpaid after 1 day.” The flow is always saved as a draft and sends nothing. It only starts sending messages after you review it in the Bevits editor and confirm in the chat.The agent reads the catalog
bevits_get_flow_builder_catalog lists triggers as platform.event (for
example nuvemshop.order_created), showing whether each one is available to
your store (available) and, when it isn’t, why (unavailable_reason). It
also returns the accepted block types and a complete example.It checks the chosen trigger's conditions
trigger, the same tool returns conditions.fields[]:
each field (field, such as order.paymentMethod), its name (label),
type (type), accepted operators (operators), allowed values (values),
and notes (note).It picks the templates
bevits_list_message_templates lists the WhatsApp (official and unofficial),
email, and SMS templates, with the start of the text (preview), the
WhatsApp approval status (status), and the customer data each variable
renders (variables, such as {{1}} → first_name). Filter by channel with
channel (whatsapp, whatsapp_unofficial, email, or sms). Templates
synced from your Meta account come with variables_required: true: the
send_whatsapp block says what each variable sends in that flow, with
variables.It validates and saves the draft
bevits_create_flow_draft with validate_only: true only checks the flow
and returns the outline, saving nothing. The same call without
validate_only then saves the draft.You review it in the editor
html_url), the step-by-step outline
(outline), and the warnings (warnings), such as a WhatsApp template still
under review by Meta. Open the flow in Bevits and check every block.You confirm and the agent activates it
bevits_activate_flow with the revision you reviewed. From then on, the
flow sends real messages to your customers.Flow description
bevits_create_flow_draft takes a declarative description of the flow. Bevits
builds the editor graph from it.
equals, not_equals, greater_than, less_than,
greater_than_or_equal, less_than_or_equal, contains, not_contains,
starts_with, ends_with, is_empty, is_not_empty, includes, and
not_includes. Which ones apply depends on the field type; the catalog lists
the operators for each field.
To check the customer’s tags, use the customer.tags field with includes
or not_includes and the tag id (tag_...) as value. The condition looks at
the tags when the block runs, so tags applied earlier in the same flow count. In
the editor, it is Customer tags among the customer attributes.
Example of an unpaid boleto reminder:
nuvemshop.order_cancelled trigger, a condition order.paymentMethod equals
pix, another order.paymentStatus not equal to paid, and then the
WhatsApp send. Don’t use voided: when the order is cancelled the payment still
shows as pending and only becomes voided later.
The response (object: "flow_draft") includes id (flw_...),
status: "draft", revision, html_url, trigger, outline (the steps in
plain language), warnings, and next_step. If the description has problems,
the tool returns a validation_error listing all of them at once, each with
its path, block key, and valid options, so the agent can fix everything in a
single retry.
Review and activation
Therevision (for example rev_...) identifies the exact content of the flow
you reviewed. bevits_activate_flow requires it:
- If the flow was edited after that revision, activation fails with
conflictand returns the current revision. The agent must ask you to review again before retrying. - Activation runs the same checks as the Activate button in the editor. If
something blocks it, such as an incomplete block or a template without a
WhatsApp account set, the tool returns a
validation_errorlisting the problems. - On success, the response is the flow with
status: "active"and itsrevision.
bevits_get_flow also returns the flow’s current revision.
Permissions
- Create automations, emails and campaigns appears on the authorization screen for members with at least one write permission (see Permissions by operation), and it starts unchecked: writing is only granted if you check it. It is confirmed on every authorization: when the agent asks for write access, the screen shows again even if you allowed it before. Read-only connections keep reusing your earlier approval.
- The automation tools only show up when the token has
mcp:writeand you still have access to Automations. This is checked on every request. - Connections made before this option stay read-only until you reconnect and allow writing.
- Through the REST API, the same operations are
GET /v1/flow-builder/catalog,GET /v1/message-templates,POST /v1/flows, andPOST /v1/flows/{flow_id}/activate.POSTcalls require an API key with thewritescope and honor theIdempotency-Keyheader.
Edit existing flows
Besides creating flows, the agent reads and adjusts the ones you already have, including flows built in the editor.Read a flow
bevits_get_flow_definition returns the flow (object: "flow_definition") in
the same shape as the description bevits_create_flow_draft takes:
Edit a draft
bevits_update_flow_draft applies a batch of operations to a draft or inactive
flow. The batch is saved as a whole or not at all, and editing never activates
the flow.
expected_node_versions: thenode_versionof every block whose fields change or that is removed ("trigger"for the trigger).expected_graph_version: thegraph_version, when the batch adds, removes, or relinks blocks, or changes the start.
conflict and nothing is saved. The agent reads the flow again and redoes the
change on top of the current version. Changes to different blocks live side by
side without conflicts.
bevits_create_flow_draft; every other block stays exactly as it was. A block
without connections doesn’t stop the draft from being saved: it shows up in
warnings and is connected or removed before activation. Use
validate_only: true to check without saving.
The response (object: "flow_draft_update") has the updated flow with its new
versions, changed, key_mapping (the key each new block has from now on),
warnings, and next_step.
With the editor open
If the flow is open in the editor, the change shows up within seconds, without reloading the page. If you are editing at that moment, the editor lets you know and pauses autosave so neither change erases the other; click Load current version to continue. For the same reason, the editor’s Activate button only publishes the latest version of the flow.Active flows
Active flows are protected: what is sending messages only changes after your review. To adjust an active flow, duplicate it withbevits_duplicate_flow and
edit the copy, or deactivate it in the editor. Activation is still
bevits_activate_flow, with the new revision and only after you confirm.
Rename and duplicate
bevits_rename_flowrenames any flow. The name doesn’t change therevision.bevits_duplicate_flowcreates a draft copy with the same blocks and connections. The copy uses the same templates, without duplicating them, and is named after the original followed by ” (cópia)”, or thenameyou pass.
GET /v1/flows/{flow_id}/definition, POST /v1/flows/{flow_id}/draft,
POST /v1/flows/{flow_id}/rename, and POST /v1/flows/{flow_id}/duplicate,
with access to Automations.
Create WhatsApp campaigns
With writing allowed, the agent creates Official WhatsApp campaigns from what you ask in the chat — for example, “create a Black Friday campaign with the banner image, the customer’s name, and a button to the deals page”. Each campaign comes with a new template, which Bevits submits to Meta for review, and is saved as a draft. The tool never sends messages: once Meta approves the template, you pick the audience and send the campaign in Bevits.You approve the copy
The agent validates the campaign
bevits_create_whatsapp_campaign with validate_only: true checks the
campaign and its template against Meta’s rules without saving anything or
contacting Meta. If there are problems, the response lists all of them,
and the agent fixes everything at once.The agent creates the campaign
validate_only submits the template to Meta and saves
the campaign as a draft. Each such call submits a new template, so the agent
doesn’t repeat a call that succeeded.Meta reviews the template
bevits_get_template_campaign and
bevits_list_message_templates.Set the audience and send
html_url, or in chat with
bevits_set_whatsapp_campaign_audience,
bevits_preview_whatsapp_campaign_send, and
bevits_send_whatsapp_campaign (always after preview and explicit
confirmation).Campaign description
{{1}}, {{2}}… in sequence. A
variable can’t open or close the text: always leave some text before the first
one and after the last one. For each one, provide in variables:
example: the sample value Meta sees during review (required).fill(optional): what each customer receives.{ "type": "first_name" }uses the customer’s first name, with an optionalfallbackfor customers without a name (for example"customer");{ "type": "fixed_text", "text": "..." }sends the same text to everyone. Withoutfill, you choose later in the Content step of the campaign editor.
- Text:
{ "type": "text", "text": "..." }, up to 60 characters, in plain text (no emoji, formatting, line breaks, or variables). - Media:
{ "type": "image" | "video" | "document", "url": "https://..." }, with a public HTTPS URL of the file (JPEG or PNG image up to 5 MB, MP4 video up to 16 MB, PDF document up to 100 MB). The file is sent to Meta as the review sample and becomes the campaign media. For documents,filenamesets the name customers see.
type:
Response
The response (object: "whatsapp_campaign_draft") includes:
validate_only: true), the response has no id,
html_url, template.id, or template.status.
If the campaign has problems, the tool returns validation_error with all of
them, each with the field path (for example template.variables). If Meta
refuses the template on submission, the error includes Meta’s reason. If the
template is rejected later, during review, Bevits shows the reason in the
campaign editor; adjust the copy and create a new campaign.
Permissions
- The tool only shows up when the token has
mcp:writeand you have access to the Official WhatsApp Campaigns area. This is checked on every request. Members who only have access to Automations see the automation tools, but not this one. - The store must have Official WhatsApp connected.
- Through the REST API, the same operation is
POST /v1/whatsapp-campaigns. It requires an API key with thewritescope and honors theIdempotency-Keyheader.
Create campaign engagement segments
To build the audience of a new send from official WhatsApp campaigns that already went out, ask the agent something like: “Split who read or clicked the Black Friday campaigns and who received them and didn’t engage, leaving out who bought in November”.- The agent finds the campaigns with
bevits_list_template_campaigns. bevits_preview_campaign_engagement_segmentreturns the count, a sample and the split of the whole audience into engaged, received and didn’t engage, and didn’t receive. One preview already shows both lists.bevits_create_campaign_engagement_segment, with the same criteria, saves the segment and returns its link.
Permissions
- The preview tool is read-only. The create tool only shows up when the token
has
mcp:writeand you have access to the Customers area and to the whole brand’s data (not only units). - In the REST API, the same operations are
GET /v1/segments/campaign-engagement/previewandPOST /v1/segments/campaign-engagement.
Create and edit segments
With writing allowed, the agent builds segments from what you ask for in the chat — for example, “create a segment with customers who have available giftback that expires in the next 7 days”. It uses the same conditions as the Customers filter screen: customer data and custom attributes, tags, purchased products, and coupons and cashback (giftback). The segment is ready to be picked as the audience of a WhatsApp or email campaign, and no message is sent.The agent checks the catalog
bevits_get_segment_filter_catalog lists the customer fields and custom
attributes (atr_...) with each one’s operators, the tag and product
operators, the coupon statuses and sources, and the automations that issue
coupons in your store (coupons.flows, with issues_cashback: true on the
cashback ones). It also includes a complete example.It shows the preview
bevits_preview_segment counts who matches the conditions right now
(customer_count), how many can be reached on WhatsApp
(whatsapp_reachable_count) and by email (email_reachable_count), and
shows a sample of customers (sample, up to 20 with sample_size). Nothing
is saved. If a condition has a problem, the response points to it with the
valid options, and the agent fixes it and previews again.It saves the segment
bevits_create_segment saves the segment
with a name, an optional description, and the same conditions, and
returns its link (segment.html_url). If the name is already taken, Bevits
adds a number at the end.Conditions
match sets how the conditions combine: all (default) keeps customers who
match every condition; any, those who match at least one. Each segment takes
up to 30 conditions, and each one has a kind:
field operators depend on the field type, and the catalog lists each
field’s operators:
Coupons and cashback (giftback)
Thecoupon condition reads the coupons Bevits issued to each customer in
automations, in AI customer service, and in in-store sales. status sets who
is in:
source sets which coupons count:
received_within_days only counts
coupons issued in the last N days (up to 3650), and expires_within_days,
together with has_available, only those that expire in the next N days (up
to 365).
Example of customers with available giftback that expires in the next 7 days
who have spent at least 500.00 (50000 cents) in the store:
Custom event condition
Theevent condition counts the custom events each customer sent, like the
Custom event filter on the customers screen. Event names and property
paths and types come from bevits_list_event_types (GET /v1/event-types).
properties filter has a path (as bevits_list_event_types names it:
order.total, or items[].sku for a value inside a list), a kind, an
operator, a value and, for between, a value_to:
exists and not_exists, without a value. Reading a
segment back returns the values as text.
Example of customers who got at least 2 orders shipped by Correios in the last
30 days:
Always up to date
A filter segment is evaluated again whenever it is read or used in a send, so the campaign reaches whoever matches the conditions at send time. In an available giftback segment, customers who spend their giftback leave the audience on their own, and those who get a new one join, with nothing to rebuild.Edit a segment
bevits_update_segment renames a segment, changes its description, or
replaces the conditions of a filter segment (type: "filters"). To replace the
conditions, the agent reads the segment with bevits_get_segment, which
returns type, match, and conditions in the same format creation takes,
and sends the full new list, not just what changed, after a preview. The change
applies to every campaign that uses the segment, including scheduled ones, so
the agent confirms with you before saving. RFM segments
are kept up to date automatically by Bevits.
Add and remove customers
bevits_add_segment_customersadds up to 500 customers (cus_...) per call, like selecting customers and adding them to a segment on the Customers screen. In filter and static segments they stay whatever the conditions say; in campaign engagement segments, the segment’s purchase window still applies to them.bevits_remove_segment_customerstakes up to 500 customers out per call. In a filter segment, a removed customer stays out even if they still match the conditions; adding them again undoes the removal.- The response carries the updated segment, with
customer_count, and how many customers changed (changed).
Tags
bevits_create_tagcreates a tag with anameand an optional hexcolor(such as9CA3AF). Tag names are unique in the store, so the agent checksbevits_list_tagsfirst and reuses the tag that already exists.bevits_update_customer_tagsadds (action: "add") or removes (action: "remove") up to 20 tags on up to 500 customers at once, keeping their other tags. The response carriescustomers,tag_ids, andchanged(links created or removed).- Segments that filter by these tags follow the change, and tags can also be
used in flows (the
update_tagsblock).
bevits_list_customers and sort: "total_spent", creates the VIP tag if
it doesn’t exist yet, and applies it to those customers.
Permissions
bevits_get_segment_filter_catalogandbevits_preview_segmentare read-only. The tools that create and edit segments and tags only show up when the token hasmcp:writeand you have access to the Customers area and to the whole brand’s data (not only units). This is checked on every request.- In the REST API, the same operations are
GET /v1/segment-builder/catalog,POST /v1/segment-builder/preview,POST /v1/segments,POST /v1/segments/{segment_id},POST /v1/segments/{segment_id}/customers/add,POST /v1/segments/{segment_id}/customers/remove,POST /v1/tags, andPOST /v1/customers/tags. The preview only needs thereadscope; the others require an API key with thewritescope and honor theIdempotency-Keyheader.POST /v1/segmentsandPOST /v1/tagsrespond with201. GET /v1/segments/{segment_id}returnstype,match, andconditions, andcustomer_counttakes the conditions of filter segments into account.
Send campaigns, tests, and sales
Sending is always your decision. The agent follows the same protocol as flow activation:- Preview. The agent calls the preview tool and shows everything that will go out: the content, the audience and how many can receive it, the timing, who sends it and, for WhatsApp, the credits needed and your balance. It also shares the link to review the campaign in Bevits.
- Confirmation. The agent asks you to confirm in the conversation that you reviewed the preview and want to send.
- Send. The agent sends with the
revisionof the preview you confirmed. If anything changed since (content, audience, timing, sender, template approval or balance), the send is refused, and the agent shows the current preview and asks you to confirm again.
operation_id never sends
twice.
- Email:
send_atwithtimezoneschedules it; without them it goes now. - Official WhatsApp: choose the number with
whatsapp_account_idand quiet hours withquiet_hours, or keep the campaign’s. Sending follows Meta’s daily limit waves, as in the app. Campaigns sent from the store’s own number (unofficial WhatsApp) are sent from the campaign screen in Bevits. - Tests: they only reach you or another active store member, never customers.
- Unit sales:
bevits_record_unit_salerecords a sale (for a unit withunit_id, or online without it). Withcashback_flow_id, the preview shows the cashback and the messages the automation will send.
Edit customers and settings
With writing allowed, the agent also keeps your customer base and your inbox settings tidy from the chat: it registers and fixes customers, keeps addresses and custom attributes up to date, maintains quick replies, teaches the AI agent, and adjusts the brand identity. None of these tools sends a message or starts an automation. The agent tells you exactly what will change and waits for your confirmation before changing a phone or email, unsubscribing someone, deleting anything, or editing what the AI agent knows.Customers
bevits_create_customertakes the same fields as thecustomerof an event:external_id,tax_id,email,phone,name,attributes, andconsent, with at least one of the first four. The phone goes in E.164 (+5511988887777) or without the country code, for a number in the store’s country. If one of those identifiers already belongs to a customer (looked up in that order), Bevits returns that customer as is, changing nothing; the answer is always the customer, as inbevits_get_customer, and acreated_atearlier than the call shows they already existed. A new customer is created without marketing opt-in unlessconsentsays otherwise, goes to the brand’s base and triggers thecustomer.createdwebhook. No automation starts.bevits_update_customerchanges only what you send:name,email,phone(nullremoves it, as long as the customer keeps an email or a phone), andattributes, an object with custom attribute values by name or id (atr_...), such as{"shoe_size": 38}. Send text for text attributes, a number for number,true/falsefor true/false, and an ISO 8601 date for dates. An email or phone that already belongs to another customer is refused. A new phone changes where WhatsApp and SMS messages to that customer go.- Segments that filter by these fields follow the change.
Addresses
bevits_list_customer_addressesreturns the ids (adr_...) the other address tools take.bevits_create_customer_addresstakesstreet,number,city,state,country, andzip_code, plus the optionalneighborhood,complement,type_of_address,recipient_name, andphone_number.is_default: truemakes it the only default address.bevits_update_customer_addresschanges only the fields you send, andbevits_set_default_customer_addresspicks the default address.bevits_delete_customer_addressdeletes the address. Past orders keep their data.
Unsubscribe
bevits_unsubscribe_customer records that a customer doesn’t want to receive
marketing anymore:
changed: false means the customer had already opted
out.
Opt-in
bevits_subscribe_customer records that a customer agreed to receive
marketing, for stores that collect consent themselves (a checkbox at checkout,
a form) and didn’t send it when the customer was created:
bevits_unsubscribe_customer, an
unsubscribe link, or a WhatsApp reply) is refused with 409 and
code: "customer_unsubscribed": only the customer can opt back in. With all, if either channel was opted out, nothing
changes. changed: false means the customer was already subscribed.
Custom attributes
bevits_create_attributecreates an attribute withname,type(string,number,boolean, ordate), anddescription. The name is saved in lowercase, with underscores instead of spaces and no accents, and is unique in the store. Fill it in per customer withbevits_update_customerand use it in segment conditions.bevits_update_attributechangesname,type, ordescription. Segments and message variables that use the attribute follow the new name, so the agent confirms with you first.- Deleting attributes is done in Bevits, under Customers → Attributes.
Quick replies
Quick replies are the ready texts your team inserts in inbox conversations by typing/ and the shortcut. bevits_create_quick_reply takes a shortcut
(letters, numbers, and underscores, unique in the store), the content, and the
optional emoji, category (general, sales, support, or faq),
image_url, and up to 3 buttons (url, quick_reply, call, or copy, with
a label of up to 20 characters). bevits_update_quick_reply changes only what
you send (null clears the emoji, image, or buttons), and
bevits_delete_quick_reply deletes it. A quick reply is never sent by itself:
your team picks it in a conversation.
What the AI agent knows
The AI agent uses the knowledge in Settings → Chat → AI to answer customers: each entry has asituation (for example, “customer asks about
exchanges”) and the response the agent should give.
bevits_list_ai_knowledge_entrieslists the entries, newest first.bevits_create_ai_knowledge_entry,bevits_update_ai_knowledge_entry, andbevits_delete_ai_knowledge_entryadd, correct, and remove entries.- Changes take effect in the AI agent’s next replies to real customers, so the agent shows you the exact text and saves only after you confirm.
- The AI agent must be set up in Bevits first.
Brand identity
bevits_update_brand_kit changes only the fields you send, with the same
checks as the brand identity screen: colors (primary, background,
surface, text, and muted, as #rrggbb), fonts (heading and body),
locale, voice_tone, vocabulary (replaces the list, up to 30 words),
links (store, contact, instagram, tiktok, and facebook, as http(s)
links; null removes one), and footer_note. The logo stays the one in
Settings → Store.
An agent edit is not a review: reviewed_at stays as it was, and the agent asks
you to review the brand identity in
Settings → Store → Brand identity.
New emails use the new identity; existing ones keep their look.
Delete a segment
bevits_delete_segment deletes a segment only when nothing still depends on
it. While a draft, scheduled, sending, or paused email or WhatsApp/SMS campaign
targets the segment, the deletion is refused with conflict and the list of
those campaigns, so you can change their audience first. Campaigns already sent
don’t block it. RFM segments are kept by Bevits and
can’t be deleted. Customers are never deleted with the segment.
Permissions
The tools show up when the token hasmcp:write and your account has the
matching permission (see Permissions by operation). Reading the AI agent’s
knowledge requires the same permission as editing it.
Through the REST API, the same operations are
POST /v1/customers, POST /v1/customers/{customer_id},
GET and POST /v1/customers/{customer_id}/addresses,
POST /v1/customers/{customer_id}/addresses/{address_id},
POST /v1/customers/{customer_id}/addresses/{address_id}/default,
POST /v1/customers/{customer_id}/addresses/{address_id}/delete,
POST /v1/customers/{customer_id}/unsubscribe,
POST /v1/customers/{customer_id}/subscribe, POST /v1/attributes,
POST /v1/attributes/{attribute_id}, GET and POST /v1/quick-replies,
POST /v1/quick-replies/{quick_reply_id},
POST /v1/quick-replies/{quick_reply_id}/delete,
GET and POST /v1/ai-knowledge-entries,
POST /v1/ai-knowledge-entries/{knowledge_id},
POST /v1/ai-knowledge-entries/{knowledge_id}/delete, POST /v1/brand-kit, and
POST /v1/segments/{segment_id}/delete. Writes require an API key with the
write scope and honor the Idempotency-Key header.
Recipes, emails, and brand identity
Besides custom flows, the agent can set up the store from ready-made recipes, create and import emails, and prepare campaigns. It reads what the store already has, shows the plan, and creates everything paused: nothing is sent until you review and activate it in Bevits.Recipes
The agent reads the account context
bevits_get_account_context shows the store, the connected channels, the
existing flows, and the segment sizes. In flows.coverage it sees which
standard automations the store already has and suggests only the missing
ones.It shows the plan before creating
bevits_create_flows_from_recipes with validate_only: true returns the
plan: the flows and their steps, the emails, the WhatsApp texts, and the
campaign, plus warnings such as an unverified email domain, WhatsApp not
connected, or a brand identity not reviewed yet. Nothing is saved at this
step. Pass locale (pt-BR, es, es-AR, or en) for the language of
the copy, or leave the brand identity’s, and platform (nuvemshop,
shopify, or woocommerce) when the organization has more than one store
connected. In an organization without a store integration that reports its
sales through the API, platform: "api" (the default in that case) builds
post-purchase on the payment_confirmed event and abandoned-checkout
on cart_abandoned when the organization sends it, otherwise on
checkout_started; cashback and winback need a connected store,
because they issue coupons.It creates everything paused
validate_only creates the
flows inactive, the emails and WhatsApp texts, and the campaigns as
drafts. The response includes the deployment (deployment, with an
rdp_... id) and each created item with its html_url. Nothing is sent.You review and activate
revision with
bevits_get_flow and calls bevits_activate_flow only after you confirm.
Draft campaigns can be sent in Bevits or from chat after previewing and
explicit confirmation.Or undo it
bevits_rollback_recipe_deployment deletes everything the deployment
created and keeps templates that another flow or campaign also uses
(kept). The undo is refused with conflict when a flow was activated or
already sent messages, or a campaign left draft.Emails and campaigns
bevits_create_email_templatecreates a template from a Bevits email editor document (document), withnameandsubject. It shows up in Email templates and can be edited as usual. If a block cannot be built, the response lists the problem incompile_errors.bevits_create_email_campaign_draftcreates a draft campaign for a template (email_template_id,etp_...) that no other campaign uses and up to 20 segments (segment_ids,seg_...). This tool only saves the draft; to schedule or send from chat, use the send tools with preview and confirmation (see Send campaigns, tests, and sales).- To bring in an email from another tool, the agent calls
bevits_import_email_htmlwith the HTML, the language (pt-BR,en, ores), and optionally thesubject(the subject line the customer sees;nameis only the internal name). Withoutsubject, a new template usesnameas its subject and an existing one keeps its current subject. It then follows the conversion withbevits_get_email_importuntilstateis no longerrunning, and, once it finishes, saves the result withbevits_apply_email_import.qualitytells how faithful the editable copy is to the original (editable,review, orfallback). The import creates a new template or replaces the content of an existing one (email_template_id). Each organization can start up to 20 imports per hour. bevits_upload_brand_assetstores an image in Bevits and returns theurlto use in emails. Send eitherurlordata_base64, never both.
Brand identity
Generated emails and texts use the organization’s brand identity: colors, fonts, language, voice, vocabulary, links, and footer. The logo is the same as in Settings → Store. Bevits builds a suggestion from the store’s website, and you review and save it in Settings → Store → Brand identity. The agent reads it withbevits_get_brand_kit; while reviewed_at is null it
is only a suggestion, and the recipe plan warns about it.
Permissions by operation
Each write tool only shows up when the connection hasmcp:write and your
account has every permission it requires. Permissions are checked on every
request: a change to your role or permissions applies on the next call,
without authorizing again.
GET /v1/account-context, GET /v1/brand-kit, GET and
POST /v1/recipe-deployments, GET /v1/recipe-deployments/{deployment_id},
POST /v1/recipe-deployments/{deployment_id}/rollback,
POST /v1/email-templates, POST /v1/email-campaigns,
POST /v1/email-imports, GET /v1/email-imports/{email_import_id},
POST /v1/email-imports/{email_import_id}/apply, and POST /v1/brand-assets.
Write calls require an API key with the write scope and respond with 200.
An API key is an organization credential, so the permission table above does
not apply to it. The Idempotency-Key header is optional: a retry with the
same key within 24 hours returns the original response (with
Idempotent-Replayed: true), and the same key with a different body is
rejected with conflict.
Retry without duplicates
Every write tool takes an optionaloperation_id, such as a UUID. The agent
generates a new value for each call and reuses it only to retry that same
call, for example when the connection drops halfway. The retry returns the
first result instead of creating everything again, and the same operation_id
with a different body is rejected with conflict. It lasts 24 hours, and
calls with validate_only: true don’t use it up. Over the REST API, the
Idempotency-Key header has the same effect.
Templates and campaign drafts
These tools create and edit templates and drafts for review without sending messages. Sending or scheduling happens in Bevits or through the dedicated send tools after preview and confirmation (see Send campaigns, tests, and sales). Every response includes thehtml_url of the review screen and, in next_step, what
comes next.
Templates for automations
- Official WhatsApp (
bevits_create_whatsapp_template): the agent shows you the copy, calls the tool withvalidate_only: true, fixes everything it reports, and only then submits the template to Meta. Each call withoutvalidate_onlysubmits a new template, so a successful call is never repeated. Body variables are{{1}},{{2}}… in order, and each one has an example for Meta (example) and what each customer receives (value): a field such as{{first_name}}or{{coupon_code}}, or text mixing fields, such as{{coupon_code}} until {{expiration_date}}. Link buttons use a URL field ({{abandoned_checkout_url}},{{tracking_url}}…) or a fixed link, and Bevits counts the clicks. The copy-code button takes{{coupon_code}}or a fixed code. The default category isutility; coupons and promotions aremarketing. Approval usually takes minutes and can take up to 24 hours; follow it withbevits_list_message_templates. - Unofficial WhatsApp and SMS: these templates are created and edited in
the Bevits template editor, and the agent finds them with
bevits_list_message_templates. - Use the template
id(wtp_...orstp_...) astemplate_idinbevits_create_flow_draft.
Edit emails
bevits_get_email_templatereturns the editor document (document), the name, the subject, and therevision.bevits_update_email_templatetakes therevisionthat was read and what to change: the fulldocument,name, orsubject. The document goes through the same validation asbevits_create_email_template.- If someone edited the email in the editor in the meantime, the call returns
conflictwith the currentrevision: the agent reads it again and redoes the change on top of the new version, without erasing anyone’s work.
locked: true). To reuse it, duplicate the campaign.
Campaign drafts
bevits_create_whatsapp_campaign_from_templatecreates a draft official campaign with an approved template (template_id,wtp_...), with no new Meta review. If the id isn’t an approved template, the error lists the store’s approved ones.bevits_set_whatsapp_campaign_audienceandbevits_set_email_campaign_audienceset the audience:everyone, orsegmentswithsegment_ids. Official campaigns go to one segment; unofficial and email campaigns take up to 20.bevits_update_whatsapp_campaign_draftadjusts the content. For an official campaign:variables(first name or fixed text in each{{n}}),buttons(destination of each link button and code of each copy-code button, by position), andheader_media(httpsURL of the image, video, or PDF when the template has header media). Whatever isn’t sent stays as it was. For an unofficial campaign:texts, with the message or up to 5 A/B variations split evenly; campaigns use{{first_name}}.bevits_update_email_campaign_draftrenames a campaign or changes the template it sends.bevits_duplicate_whatsapp_campaignandbevits_duplicate_email_campaigncopy any campaign as a draft; the schedule isn’t copied.- Only drafts change. If the campaign already left draft, the response says where it is; to change it, duplicate it.
Resend to non-openers
bevits_create_email_non_openers_segmentstarts building the segment of customers who received the campaign and didn’t open it. Bounces and complaints are left out.bevits_get_email_non_openers_segmentfollows it untilstateiscompletedand returns thesegment_id.bevits_duplicate_email_campaignwith thatsegment_idcreates the resend as a draft, named “(reenvio)”. You review and send it in the app.
POST /v1/whatsapp-templates, GET and
POST /v1/email-templates/{email_template_id},
POST /v1/whatsapp-campaigns/from-template,
POST /v1/whatsapp-campaigns/{campaign_id}/audience, /draft, and
/duplicate, POST /v1/email-campaigns/{email_campaign_id}/audience,
/draft, /duplicate, and /non-openers, and
GET /v1/email-non-openers/{run_id}. Writes require an API key with the
write scope and accept the Idempotency-Key header.
Audit, cashback ROI, and whole audiences
Some questions are faster to answer with the agent than screen by screen: what needs attention in your automations, how much cashback is bringing in, how much two audiences overlap, and how to tag a whole audience at once.Automation audit
bevits_audit_automations reviews the store in one call and returns what needs
attention, from most severe (critical) to informational (info). Each item
says what it is (title), why it matters (detail), the link to open it in
Bevits (html_url), and the suggested next tool (suggested_next_tool).
The audit checks:
- Active flows using Official WhatsApp templates that are rejected, paused, under review, or deleted.
- Scheduled campaigns with a template that isn’t approved, and campaigns paused because Meta changed the template’s category.
- Flows where most coupons expire unused, among the coupons issued in the last
90 days (
coupon_window_days). - Active flows with no sends in the last 14 days (
no_sends_days). - Flows with many failed sends in the last 7 days (
failure_window_days). - Scheduled or draft campaigns whose segments are empty right now.
Cashback ROI
bevits_get_cashback_roi shows, per automation, the results of the coupons
issued in the period (since and until; by default the last 90 days, up to
366 days):
coupons_issued,coupons_redeemed, andredemption_rate;revenue_in_cents: revenue from the purchases that used those coupons, counting each purchase once;coupons_expired_unused,expiration_rate, andcoupons_available;cashback: how many coupons were generated by a purchase, the value granted (granted_value_in_cents), and the value redeemed (redeemed_value_in_cents). Percentage and free-shipping cashback is counted inunvalued.
source: "in_store", and coupons issued outside an automation as
source: "other". Amounts follow the store’s reporting currency, as in the
app, and the definitions match the coupon filter: a coupon is used when it is
linked to a purchase or marked as used.
Example: “Which cashback automation brought the most revenue in the last 3
months, and how much cashback expired unused?”
Compare audiences
bevits_compare_segments takes 2 to 5 audiences in audiences. Each one is a
saved segment ({"segment_id": "seg_..."}) or conditions in the same format as
bevits_preview_segment ({"match": "all", "conditions": [...]}), with an
optional label.
For each pair, the response includes both, only_a, only_b, the shares,
and a sample of customers in both (sample_size, default 3), plus
union_count (in at least one) and in_all_count (in all). Saved segments
count the way campaign sends do: conditions are evaluated now, customers added
by hand are in, and removed customers stay out.
Example: “How many customers in the VIP segment already have giftback
available?”
Tags on a whole audience
bevits_tag_segment_customers adds (action: "add") or removes
(action: "remove") up to 20 tags on every customer of a segment
(segment_id) or of a set of conditions (match and conditions).
- The agent calls it with
validate_only: trueand shows how many customers are in the audience (audience_count) and how many will change (to_change). - After you confirm, it calls again with the
revisionfrom that validation. If the audience changed in the meantime, the call is rejected with the new numbers, and the agent checks with you again. - Each call applies to up to 10,000 customers (
max_customers_per_call). For larger audiences,remainingshows how many are left, and the agent validates and continues until it reaches zero.
Audience suggestions
bevits_get_account_context also returns audience_suggestions: audiences
worth acting on now, such as customers with cashback expiring in the next 7
days, customers with cashback available, and customers who let a cashback
received in the last 60 days expire. Each suggestion comes with its count and
the conditions ready for bevits_preview_segment and bevits_create_segment.
Permissions
bevits_audit_automations,bevits_get_cashback_roi, andbevits_compare_segmentsare read tools.bevits_tag_segment_customersonly appears when the token hasmcp:writeand you have access to Customers and to the whole brand’s data, like the other tag tools. It acceptsoperation_id.- Over the REST API:
GET /v1/automations/audit,GET /v1/analytics/cashback-roi, andPOST /v1/segment-builder/compare, with thereadscope, andPOST /v1/segment-builder/tag-customers, with thewritescope and the optionalIdempotency-Keyheader.
Dashboard, reports, and logs
With these tools the agent answers “how is the store doing?” and looks into a send without you opening any screen. Everything is read-only: nothing is sent, changed, or bought.Dashboard
bevits_get_dashboard_summary returns the same numbers as Home for period
(24h, 7d, 30d, 60d, 90d, or 12m, default 30d), always ending now
in the store’s time zone:
currency), converted
with the rate of each purchase day. recent_limit (default 5, maximum 20)
sets how many recent recovered carts and giftback sales the response includes.
Campaigns
bevits_get_whatsapp_campaign_clicksmeasures the link buttons of WhatsApp Official campaigns: human clicks, clicks flagged as bots, customers who clicked, and the click rate over delivered messages. The list of who clicked is paginated: passclickers.next_cursorascursorfor the next page. Clicks are kept for 180 days.bevits_get_email_campaign_metricsshows the delivery of an email campaign:bounced,complained(marked as spam),unsubscribed,rejected, the rates, and clicks per link.bevits_get_email_metricsadds up every email from the store’s sending domain, campaigns and automations, overrange(1_day,1_week,1_month,6_months, or1_year, default1_month).
Logs
bevits_list_message_logs lists the most recent messages first. Each item
gives the channel, whether it came from a flow or a campaign, the status, when
it was sent, delivered, read, and clicked, the failure reason for campaigns,
and, for abandoned cart automations, whether it recovered the sale
(converted_at).
message_id in the response leads to
bevits_get_whatsapp_message_events, which shows every event Meta reported and
the error when the message failed.
bevits_list_link_clicks lists the clicks from the last 7 days by default,
with filters by channel, template_campaign_id, or flow_id. Bot clicks are
left out unless include_bots is true.
bevits_list_flow_executions lists the runs of an Instagram automation: one
per comment or message that started it, with the status and stop reason.
In these tools, the next page comes in next_cursor: pass it as cursor with
the same filters. The cursor keeps the moment of the first page, so reading
never skips or repeats items.
Account status
bevits_get_account_status shows the store platforms (Nuvemshop, Shopify,
WooCommerce, Bling, and Wbuy) with when they were connected and their last
sync, the email domains with their verification status, the Official WhatsApp
accounts and unofficial WhatsApp numbers with their connection status, and the
Official WhatsApp credit balance. Tokens, keys, and passwords never leave
Bevits. Buying credits and connecting accounts stay in the app.
Permissions
These reads follow the same rules as the app screens and require access to the whole brand’s data (not only units):GET /v1/dashboard/summary,
GET /v1/template-campaigns/{template_campaign_id}/clicks,
GET /v1/email-campaigns/{email_campaign_id}/metrics, GET /v1/email-metrics,
GET /v1/logs/messages, GET /v1/logs/whatsapp-message-events,
GET /v1/logs/clicks, GET /v1/flows/{flow_id}/executions, and
GET /v1/account-status, with an API key with the read scope.
Products, customer journey, and RFM
These read tools answer questions about the catalog, about one customer, and about the RFM segmentation in a single call. They change nothing and never send messages.Product catalog
bevits_list_productsfilters byq(title or name),category_id(pct_...),status(activeordraft),platform, andstore_product_id(the product ID on the store), and sorts withsort:updated(default),best_selling(units sold),top_revenue, orname. It uses the same cursor pagination as the other lists.- Each product brings
segment_product_id, the value for a “bought this product” segment condition, and its categories withsegment_categoryfor “bought in this category”. So the agent goes from “who bought my best seller” straight to a segment that stays up to date. bevits_list_product_categoriesacceptsqand keeps the parent category of each match.
Customer journey
bevits_get_customer_journey takes a customer_id (cus_...) and returns:
flows.available comes back as false and the rest of the journey
still answers.
RFM
bevits_get_rfm returns the same numbers as the RFM page: the parameters
(recency in days since the last purchase, frequency in orders, and spend in
cents, each with a lower and an upper limit), the date of the last calculation,
and for each segment — Champions, Loyal, Recent, Needs attention, At risk,
Inactive, and Not classified — the number of customers, their share of the
base, and segment_id. Use segment_id with bevits_list_segment_customers
to list who is in a segment, or pick the segment as a campaign audience.
Permissions
- The five tools are read-only. Like the RFM page and the customer’s flow
history in the app, they need access to the whole brand’s data (not only
units); for a member limited to units, they answer with
permission_denied. - In the REST API, the same operations are
GET /v1/products,GET /v1/products/{product_id},GET /v1/product-categories,GET /v1/customers/{customer_id}/journey, andGET /v1/rfm, with thereadscope.
Stop flows and campaigns
When something needs to stop, ask in the chat: a flow that should no longer run, a WhatsApp campaign going out with the wrong offer, or an email campaign whose date changed. The agent confirms with you which flow or campaign it is (name and id) and stops it. It only uses these tools when you ask.WhatsApp campaign cancellation
The response (whatsapp_campaign_cancellation) brings:
outcome:cancellingwhen the cancellation started;already_cancelled,already_finished, ornot_started(a draft) when there was nothing left to stop.sent_count: how many messages had already gone out.message: a short summary to show you.campaign: the campaign, asbevits_get_template_campaignreturns it.
bevits_get_template_campaign
shows the final status. To send the same message again later, create a new
campaign in Bevits.
Email campaign scheduling
A scheduled campaign goes back to draft while it waits for its date. Once sending starts, it runs to the end, and the agent tells you so. Through the REST API, the same operations arePOST /v1/flows/{flow_id}/deactivate,
POST /v1/whatsapp-campaigns/{template_campaign_id}/cancel, and
POST /v1/email-campaigns/{email_campaign_id}/unschedule, with an API key
that has the write scope.
Pagination
The customer, purchase, segment, tag, attribute, flow, and campaign list tools use cursor pagination.bevits_list_recipe_deployments returns the 50 most
recent deployments, and bevits_list_message_templates returns every template
at once. Pagination works like this:
limit— items per page. Defaults to25, maximum50.starting_after— ID of the last item on the previous page.- The response carries
data,has_more, andnext_cursorwhen more pages exist.
next_cursor as starting_after. Because the
page size is capped, “give me everything” questions make the agent paginate many
times; use filters to get faster answers.
Security and limits
Writing under your control
mcp:write scope, the agent only reads. With it, the agent runs
only the actions your role allows. Flow activations, campaign sends or
schedules, and unit sale records require previewing and explicit
confirmation with revision checks, and the agent never deletes customers
or orders.Scoped to one organization
No key in the config
Rate limit
X-RateLimit-Limit, X-RateLimit-Remaining,
X-RateLimit-Reset, and Retry-After.Errors
When a tool fails, the agent receives a structured error with acode and, when
available, request_id and retry_after.
Troubleshooting
claude mcp list or codex mcp list) and run the OAuth authorization again./mcp or
codex mcp login bevits) and check the option. If it doesn’t appear,
your account has none of the write permissions in this organization.