search_members
Search Members
Search and filter members/accounts. Supports text search, date ranges, booking/activity history, membership tier, tags, and more. Use lastBookingBefore/inactiveDays to find inactive members.
輸入參數sortlimitordersearchsourcetagIdstierIdlifeStagehasBookingcreatedAfterinactiveDayscreatedBefore另有 6 個
get_member_profile
Get Member Profile
Get detailed profile for a specific member/account by ID.
輸入參數accountId必填
preview_customer_import
Preview Customer Import
Preview a bulk customer import (max 2000 rows). Matches existing accounts by phone/email and shows create vs update actions plus points/stamps/credit deltas. Use commit_customer_import with the returned sessionId to apply.
輸入參數rows必填filename
commit_customer_import
Commit Customer Import
Commit a previewed customer import. Pass the same rows and sessionId returned by preview_customer_import. Creates/updates accounts and applies points, stamps, and credit deltas.
輸入參數rows必填sessionId必填
create_account
Create Account
Create a CRM account/customer with a primary contact. Optionally enroll the account as a member; use enrol_membership later when the account already exists.
輸入參數name必填typeemailnotesphonesourcetierIdaddresslastNameexpiresAtfirstNamelifeStage另有 1 個
update_account
Update Account
Update CRM account/customer profile fields such as name, phone, email, life stage, owner, notes, or member code.
輸入參數nametypeemailnotesphonegendersourcelastNameaccountId必填firstNamelifeStageassignedTo另有 3 個
delete_account
Delete Account
Soft-delete a CRM account/customer. This releases the primary phone for future reuse while keeping account history for audit.
輸入參數accountId必填
List all available tags for the merchant.
輸入參數search
Create a CRM tag for customer segmentation and organization.
輸入參數name必填color
Rename or recolor an existing CRM tag.
輸入參數namecolortagId必填
Delete a CRM tag and remove it from all tagged entities.
輸入參數tagId必填
Attach one or more tags to a member/account. Useful for segmenting members after filtering.
輸入參數tagId必填accountIds必填
Detach one tag from one or more member/account records.
輸入參數tagId必填accountIds必填
List all membership tiers with member counts and stats.
無需輸入參數。
get_membership_tier
Get Membership Tier
Get a specific membership tier by ID.
輸入參數tierId必填
issue_rewards
Issue Rewards
Issue a gift/reward to multiple members. Requires a gift offer ID and member IDs.
輸入參數expiresAtmemberIds必填giftOfferId必填
enrol_membership
Enrol Membership
Enrol a member into a membership tier. Free tiers enrol immediately; paid tiers return PAYMENT_REQUIRED unless skipPriceCheck is set. Use list_tiers first to find the target tier.
輸入參數tierIdaccountId必填expiresAt
get_loyalty_balance
Get Loyalty Balance
Get a member's current loyalty balance — points, stamps, credits, lifetime totals, and active membership tier. Returns null if the member is not enrolled.
輸入參數accountId必填
earn_loyalty_points
Earn Loyalty Points
Credit loyalty points or stamps to a member. Use field="points" for points, "stamps" for stamps. Server records a transaction with the reason as audit context.
輸入參數field必填amount必填reasonaccountId必填
get_dashboard_stats
Get Dashboard Stats
Get high-level business KPIs: member count, new members this week, active subscriptions, total points issued, active promotions, rewards redeemed, messages sent.
無需輸入參數。
list_bookings
List Bookings
List bookings with filters for date range, status, service, staff, or member.
輸入參數limitdateTostatusstaffIddateFromaccountIdserviceId
get_booking_detail
Get Booking Detail
Get full booking details including line items, status history, and participants.
輸入參數bookingId必填
get_booking_stats
Get Booking Stats
Get booking counts: today, this week, this month, and breakdown by status.
無需輸入參數。
get_available_slots
Get Available Slots
Find available booking slots for a service on a specific date.
輸入參數date必填staffIdserviceId必填resourceId
list_services
List Services
List booking services with name, price, duration, and status.
輸入參數limitsearchstatus
get_service_detail
Get Service Detail
Get full service details including addons, staff, resources, and tier pricing.
輸入參數serviceId必填
get_service_tier_pricing
Get Service Tier Pricing
Read every membership-tier pricing configuration for one booking service.
輸入參數serviceId必填
set_service_tier_pricing
Set Service Tier Pricing
Set the complete pricing and booking-policy configuration for one membership tier on a booking service.
輸入參數tierId必填serviceId必填bookingLimits必填priceOverride必填discountPercent必填timeSlotPricing必填advanceBookingDays必填
copy_service_tier_pricing
Copy Service Tier Pricing
Copy the complete pricing and booking-policy configuration from one membership tier to another on the same booking service.
輸入參數serviceId必填sourceTierId必填targetTierId必填
create_service
Create Service
Create a bookable service. Sets duration, price, capacity, and policies. Use list_service_categories first if you want to attach to an existing category.
輸入參數name必填typepricestatuscapacitycurrencysortOrdercategoryIdvisibilitydescriptionrequireLoginrequiresStaff另有 8 個
update_service
Update Service
Update an existing booking service. Pass only the fields you want to change.
輸入參數namepricestatuscapacityserviceId必填categoryIdvisibilitydescriptionrequireLoginrequiresStaffcommissionTypecommissionValue另有 5 個
create_service_schedule
Create Service Schedule
Create a bookable schedule window for a service, including recurring weekly/daily availability.
輸入參數date必填notesendTime必填staffIdbyWeekdayserviceId必填startTime必填recurrenceresourceIdmaxCapacityrecurrenceEndDaterecurrenceInterval
list_service_schedules
List Service Schedules
List schedule windows for booking services.
輸入參數limitdateTostaffIddateFromserviceIdisOverrideresourceId
update_service_schedule
Update Service Schedule
Update a service schedule window. Pass only fields to change.
輸入參數datenotesendTimestaffIdbyWeekdaystartTimerecurrenceresourceIdscheduleId必填maxCapacityrecurrenceEndDaterecurrenceInterval
assign_staff_to_service
Assign Staff To Service
Assign a staff member to a booking service. Pass users.id from list_staff.userId.
輸入參數userId必填serviceId必填
link_resource_to_service
Link Resource To Service
Link a room/resource to a booking service.
輸入參數serviceId必填resourceId必填
list_service_categories
List Service Categories
List service categories (groups for booking services like "Treatments", "Classes").
無需輸入參數。
create_service_category
Create Service Category
Create a service category (e.g. "Treatments", "Classes") to group bookable services.
輸入參數name必填sortOrderdescription
create_resource
Create Resource
Create a bookable resource (room, equipment, vehicle). Used by services that have requiresResource=true.
輸入參數name必填type必填statuscapacitydescription
set_resource_availability
Set Resource Availability
Add an availability window for a resource. Use day-of-week + recurring=true for weekly schedules, or a specific date for one-off blocks.
輸入參數datetypeendTime必填dayOfWeekstartTime必填resourceId必填isRecurring
set_staff_availability
Set Staff Availability
Add an availability window for a staff member (companyMembers.id). Use day-of-week + recurring for weekly schedules, or a specific date for one-off changes.
輸入參數datetypeendTime必填memberId必填dayOfWeekstartTime必填isRecurring
get_booking_settings
Get Booking Settings
Get global booking settings for the customer booking flow, cancellation rules, visibility options, and confirmation requirements.
無需輸入參數。
update_booking_settings
Update Booking Settings
Update global booking settings. Pass only the fields you want to change.
輸入參數showCouponcalendarStyleshowAccessPasscooldownMessageblockUntilFinishedglobalCooldownDaysaccessPassAfterMinutesbookingReminderEnabledmemberReschedulingModesameDayReminderEnabledaccessPassBeforeMinutesallowMemberCancellation另有 6 個
List support tickets with optional filters.
輸入參數limitsearchstatuscategorypriorityaccountId
get_ticket_stats
Get Ticket Stats
Get ticket counts grouped by status.
無需輸入參數。
create_ticket
Create Ticket
Create a support ticket for a member issue.
輸入參數sourcesubject必填categorypriorityaccountIdcontactNamedescriptioncontactEmailcontactPhone
update_ticket_status
Update Ticket Status
Update the status of an existing support ticket.
輸入參數status必填ticketId必填
List surveys with optional status/search filters.
輸入參數limitsearchstatus
create_survey
Create Survey
Create a survey with custom question blocks. Publish it later or set status to published for immediate portal access.
輸入參數slugtitle必填openAtstatuscloseAtsettingsvisibilitydescriptionquestionBlocks必填
Get survey detail, including blocks, publishing status, visibility, settings, and response count.
輸入參數surveyId必填
update_survey
Update Survey
Update a survey draft or publishing configuration. Use questionBlocks to replace the ordered form block list.
輸入參數slugtitleopenAtstatuscloseAtsettingssurveyId必填visibilitydescriptionquestionBlocks
archive_survey
Archive Survey
Archive a survey and remove it from active survey lists.
輸入參數surveyId必填
get_survey_stats
Get Survey Stats
Get response and invitation metrics for a survey overview dashboard.
輸入參數surveyId必填
get_survey_responses
Get Survey Responses
List responses for a survey.
輸入參數limitsurveyId必填
list_survey_invitations
List Survey Invitations
List survey invitation history without exposing token hashes or old invitation tokens.
輸入參數limitsurveyId必填
create_survey_invitation
Create Survey Invitation
Create a token-auth survey invitation for a specific member/account or contact.
輸入參數channelmetadatasurveyId必填accountIdcontactIdexpiresAtrecipientNamerecipientEmailrecipientPhone
list_survey_workflows
List Survey Workflows
List automation workflows attached to a survey.
輸入參數surveyId必填
upsert_survey_workflow
Upsert Survey Workflow
Create or update a survey automation workflow, usually triggered by survey_response_submitted.
輸入參數name必填graph必填statustriggersurveyId必填workflowId
List CRM deals (sales pipeline) with optional filters.
輸入參數pagelimitstagesearchdealTypeaccountId
Get detailed CRM deal information by ID.
輸入參數dealId必填
Create a CRM sales pipeline deal, optionally linked to a customer account and contact.
輸入參數name必填stageamountownerIddealTypeaccountIdcontactIdclosingDatedescriptionprobability
Update a CRM deal. Pass only fields to change; use null for nullable links/fields to clear them.
輸入參數namestageamountdealId必填ownerIddealTypeaccountIdcontactIdclosingDatedescriptionprobability
Soft-delete a CRM deal from the sales pipeline.
輸入參數dealId必填
update_deal_stage
Update Deal Stage
Move a deal to a different pipeline stage.
輸入參數stage必填dealId必填lostReasonprobability
mark_deal_won
Mark Deal Won
Mark a CRM deal as won and set close date.
輸入參數dealId必填closingDate
mark_deal_lost
Mark Deal Lost
Mark a CRM deal as lost. Requires a lost reason.
輸入參數dealId必填reason必填
Convert an account: qualify its open lead (creating one if needed) and link exactly one pipeline deal. Also promotes lifeStage lead -> active. Safe to repeat — a second call lands on the same lead and deal. Works on accounts that are already active.
輸入參數dealNameaccountId必填dealStagelifeStagecreateDealdealAmountdealClosingDate
list_contacts
List Contacts
List contacts (people linked to CRM accounts), optionally filtered by account or search.
輸入參數limitsearchaccountId
Fetch a single contact by ID.
輸入參數contactId必填
create_contact
Create Contact
Create a contact on an existing CRM account.
輸入參數name必填emailphonejobTitleaccountId必填isPrimary
update_contact
Update Contact
Update fields on an existing contact.
輸入參數nameemailphonejobTitlecontactId必填isPrimary
set_primary_contact
Set Primary Contact
Set a contact as the primary contact for its CRM account and demote other contacts on that account.
輸入參數contactId必填
delete_contact
Delete Contact
Delete a secondary contact. Primary contacts are protected; set another primary contact or delete the account instead.
輸入參數contactId必填
list_custom_fields
List Custom Fields
List custom field definitions for CRM entities such as account, contact, deal, or booking.
輸入參數entityType必填
get_custom_field
Get Custom Field
Get a custom field definition by ID.
輸入參數definitionId必填
create_custom_field
Create Custom Field
Create a custom field definition for CRM entities. Use options for select or multiselect fields.
輸入參數optionsfieldName必填fieldType必填sortOrderentityType必填fieldLabel必填isRequired
update_custom_field
Update Custom Field
Update a custom field definition label, type, options, required flag, or sort order.
輸入參數optionsfieldTypesortOrderfieldLabelisRequireddefinitionId必填
delete_custom_field
Delete Custom Field
Delete a custom field definition and its stored values.
輸入參數definitionId必填
get_custom_field_values
Get Custom Field Values
Get custom field values for a CRM entity such as an account, contact, deal, or booking.
輸入參數entityId必填entityType必填
set_custom_field_values
Set Custom Field Values
Set or clear custom field values for a CRM entity. Values are stored as strings; pass null to clear a value.
輸入參數values必填entityId必填entityType必填
List tasks with optional status, assignee, and account filters.
輸入參數limitstatusaccountIdassigneeId
Get detailed task information by ID.
輸入參數taskId必填
Create a task. Optionally link to a CRM account or assign to a team member.
輸入參數title必填statusdueDatepriorityaccountIdassigneeIddescription
Update a task (status, priority, assignee, due date, completion).
輸入參數titlestatustaskId必填dueDatepriorityassigneeIddescription
Soft-delete a CRM task.
輸入參數taskId必填
Search across CRM accounts and contacts by name, email, or phone.
輸入參數limitquery必填
list_invoices
List Invoices
List invoices with optional filters. Use status "OVERDUE" to find unpaid invoices past due date.
輸入參數sortlimitordersearchstatus
Fetch a single invoice with line items, payment history, and customer detail.
輸入參數invoiceId必填
create_invoice
Create Invoice
Create a new invoice for a customer. Optionally include line items inline. Returns the new invoiceId.
輸入參數notesdueDatecurrencyaccountId必填lineItems
record_invoice_payment
Record Invoice Payment
Record a manual payment against an invoice (cash, bank transfer, cheque, card terminal). Updates invoice status to PARTIAL or PAID based on the running total.
輸入參數noteamount必填method必填invoiceId必填reference
mark_invoice_sent
Mark Invoice Sent
Mark an invoice as sent to the customer (transitions DRAFT → OPEN). Use after delivering the invoice via email or share link. Idempotent.
輸入參數invoiceId必填
Void an invoice. Destructive — invoice can no longer be paid or edited; existing payments are preserved as history. Cannot void invoices that are already PAID or VOIDED.
輸入參數invoiceId必填
delete_invoice
Delete Invoice
Delete a DRAFT invoice. Only invoices that have never been sent can be deleted; otherwise use void_invoice.
輸入參數invoiceId必填
restore_invoice
Restore Invoice
Restore a previously deleted DRAFT invoice.
輸入參數invoiceId必填
get_invoice_stats
Get Invoice Stats
Outstanding totals, overdue counts, and revenue this period. Used by the weekly-snapshot playbook.
無需輸入參數。
list_event_registrations
List Event Registrations
List registrations for an event in the active company, including CRM account IDs for campaign exclusions.
輸入參數limitoffseteventId必填statuses
get_event_campaign_exclusions
Get Event Campaign Exclusions
Resolve pending, confirmed, and paid event registrations into unique CRM account IDs for campaign exclusions. Pass accountIds to audienceExclusions only when ready=true; cancelled registrations are omitted and unmatched guests make the result not ready.
輸入參數eventId必填
list_subscriptions
List Subscriptions
List member subscriptions. Filter by status to find active, cancelled, or past-due subscriptions.
輸入參數limitstatus
get_subscription
Get Subscription
Fetch a single subscription with customer, tier, billing cycle, and renewal info.
輸入參數subscriptionId必填
create_subscription
Create Subscription
Create a manual, non-renewing subscription record for a member. Use a subscription action link for provider-backed recurring billing.
輸入參數amounttierIdcurrencyaccountId必填autoRenewbillingCyclecurrentPeriodEndcurrentPeriodStart
pause_subscription
Pause Subscription
Pause an active subscription (status → past_due, no further auto-renew). Use resume_subscription to reactivate.
輸入參數subscriptionId必填
resume_subscription
Resume Subscription
Resume a paused subscription back to active.
輸入參數subscriptionId必填
cancel_subscription
Cancel Subscription
Cancel a subscription. Destructive — turns off auto-renew and prevents further billing cycles. Existing paid periods stay valid until end.
輸入參數subscriptionId必填
list_campaigns
List Campaigns
List marketing campaigns (email, SMS, WhatsApp, or push) with delivery stats. Use the returned IDs when excluding recipients of previous campaigns.
輸入參數sortlimitordersearchchannel
Get a campaign by ID, including its recipient source, audience exclusions, channel configuration, and delivery stats.
輸入參數campaignId必填
create_campaign
Create Campaign
Create an email, SMS, WhatsApp, or push campaign in DRAFT. audienceExclusions can omit specific account IDs and recipients of previous campaign IDs. For email channelConfig, use subject + htmlBody + optional plainTextBody. recipientSource="list" is accepted as an alias for "individual".
輸入參數name必填statuschannel必填segmentIdscheduledAtrecipientIdschannelConfigrecipientSourceaudienceExclusions
update_campaign
Update Campaign
Update an existing campaign, including audience exclusions. Channel cannot be changed after creation. Pass only fields to change.
輸入參數namestatussegmentIdcampaignId必填scheduledAtrecipientIdschannelConfigrecipientSourceaudienceExclusions
delete_campaign
Delete Campaign
Delete a campaign. Only allowed in DRAFT status; sent campaigns are kept for audit history.
輸入參數campaignId必填
restore_campaign
Restore Campaign
Restore a previously deleted campaign.
輸入參數campaignId必填
undo_campaign_send
Undo Campaign Send
Undo a campaign send during its one-minute safety buffer. Use immediately when the merchant says to stop or undo a submitted campaign.
輸入參數campaignId必填
validate_campaign
Validate Campaign
Validate a campaign before sending. Resolves contactable recipient count and previews the final email subject/body without sending.
輸入參數campaignId必填
list_notification_logs
List Notification Logs
List notification delivery logs for the current company. Recipients are masked by default for incident-response safety.
輸入參數limitdateTostatuschanneldateFromentityIdeventTyperecipient
list_conversations
List Conversations
List messaging conversations across WhatsApp, Messenger, Instagram, Threads, SMS, email, and other enabled channels. Threads items are public conversations. Shows unread counts and last message time.
輸入參數pagelimitsearchstatuschannelassigneeassignedToId
list_audit_logs
List Audit Logs
List recent audit log entries for this company. Filter by action, resource, resourceId, user, source, outcome, destructive flag, and created date range.
輸入參數limitactionsourceuserIdoutcomeresourceresourceIddestructivecreatedAftercreatedBefore
search_audit_logs
Search Audit Logs
Search audit logs by free text across action, resource, resource ID, changes JSON, and metadata JSON.
輸入參數limitquery必填createdAftercreatedBefore
get_audit_log
Get Audit Log
Fetch a single audit log entry by ID, including before/after snapshots when available.
輸入參數auditLogId必填
revert_audit_action
Revert Audit Action
Revert an audited action by restoring the captured before snapshot. Only works for allowlisted target tables with full before/after audit snapshots.
輸入參數reasonauditLogId必填
Duplicate an existing record (product, tier, campaign, post, service package, promotion, gift offer). Creates a copy in DRAFT status with "(Copy)" appended to the name.
輸入參數nameentityId必填entityType必填
List notes attached to a member/account, booking, or ticket.
輸入參數limitentityId必填entityType必填
Add a note to a member/account, booking, ticket, or invoice.
輸入參數body必填entityId必填isPinnedentityType必填
confirm_booking
Confirm Booking
Confirm a pending booking.
輸入參數bookingId必填
cancel_booking
Cancel Booking
Cancel a booking and create a durable refund receipt. Uses the merchant refund setting unless refundMethod is provided.
輸入參數reasonbookingId必填refundMethodidempotencyKey必填
complete_booking
Complete Booking
Mark a booking as completed. Triggers commission calculation if configured.
輸入參數bookingId必填
Mark a booking as no-show when the customer did not attend.
輸入參數bookingId必填
list_promotions
List Promotions
List promotion/coupon codes with optional status filter.
輸入參數limitsearchstatus
get_promotion
Get Promotion
Get details of a specific promotion/coupon code.
輸入參數promotionId必填
create_promotion
Create Promotion
Create a promotion / discount code. type=percentage or fixed_amount; value is the discount as a string ("10" = 10% or 10 currency units). Codes are uppercased server-side.
輸入參數code必填name必填typevalue必填endsAtstatusstartsAtposEnableddescriptioneventEnabledminimumAmountonlineEnabled另有 5 個
update_promotion
Update Promotion
Update an existing promotion. Pass only the fields you want to change.
輸入參數codenametypevalueendsAtstatusstartsAtpromotionId必填usageLimitTotalusageLimitPerCustomer
delete_promotion
Delete Promotion
Delete a promotion. Past usage records are preserved.
輸入參數promotionId必填
restore_promotion
Restore Promotion
Restore a previously deleted promotion.
輸入參數promotionId必填
validate_promotion
Validate Promotion
Check if a promotion code is valid for a given order. Returns isValid, discount amount, and an error code/message if invalid. Use before applying to a checkout.
輸入參數amount必填channel必填accountIdpromotionCode必填
list_reward_schemes
List Reward Schemes
List loyalty reward schemes (points/stamps programs) configured for this business.
輸入參數limitsearch
List staff/team members in the business.
輸入參數limit
list_resources
List Resources
List booking resources (rooms, equipment, etc.).
輸入參數limit
list_service_packages
List Service Packages
List service packages/prepaid session bundles with optional search, status, sorting, and pagination.
輸入參數sortlimitordersearchstatus
get_service_package
Get Service Package
Get service package detail including applicability and selected booking service/event items.
輸入參數packageId必填
create_service_package
Create Service Package
Create a service package/prepaid session bundle. Use applicableType=SELECTED with applicableItems to limit the package to specific booking services or events.
輸入參數name必填price必填statusvalidDays必填descriptionsessionCount必填applicableTypeapplicableItems
update_service_package
Update Service Package
Update an existing service package. Pass only the fields you want to change.
輸入參數namepricestatuspackageId必填validDaysdescriptionsessionCountapplicableTypeapplicableItems
delete_service_package
Delete Service Package
Delete a service package by ID.
輸入參數packageId必填
restore_service_package
Restore Service Package
Restore a previously deleted service package by ID.
輸入參數packageId必填
get_plan_status
Get Plan Status
Show the current organisation plan, subscription/payment state, enabled modules, and quota usage. Use before deciding whether an agentic operation is allowed.
無需輸入參數。
check_plan_operation
Check Plan Operation
Preflight whether an intended operation is allowed by token scopes, enabled modules, subscription state, and quota. Provide toolName, quotaCode, or moduleCode.
輸入參數deltatoolNamequotaCodemoduleCode
list_plan_options
List Plan Options
List active FavCRM plans with prices, quotas, included modules, and whether each is the current plan.
無需輸入參數。
create_plan_upgrade_link
Create Plan Upgrade Link
Create a Stripe Checkout link for a new paid subscription, or a Stripe Billing Portal link for an existing Stripe subscription. Use only after the user explicitly asks to upgrade or fix billing.
輸入參數planIdconfirmplanCodereturnUrlbillingCycle
create_team_member_invite
Create Team Member Invite
Invite a team member to this company and return a one-time MCP accept token. The invited user must verify an email code through accept_team_invite_request and accept_team_invite_verify before membership and API key issuance.
輸入參數nameroleemail必填modulespermissionsexpiresInHours
accept_team_invite_request
Accept Team Invite — Request Code
Step 1 of agentic team invite acceptance. Validates an invite token and sends a 6-digit verification code to the invited email. Then call accept_team_invite_verify with the code to join and receive an MCP API key.
輸入參數token必填
accept_team_invite_verify
Accept Team Invite — Verify Code
Step 2 of agentic team invite acceptance. Verifies the emailed code, joins the invited user to the company, and returns a one-time MCP API key for that user.
輸入參數code必填nametoken必填
get_whatsapp_connection_status
Get Whatsapp Connection Status
Check whether WhatsApp Business is connected for this company, including WABA/phone metadata and the latest agentic connect session state.
無需輸入參數。
create_whatsapp_connect_link
Create WhatsApp Connect Link
Create a short-lived browser link for WhatsApp Business Embedded Signup. The user must open the link because Meta requires a browser popup to authorize and choose the WABA/phone number.
輸入參數ttlMinutesonboardingMode
list_my_companies
List My Companies
List all companies/organisations the current user has access to. Use this to see available orgs before switching.
無需輸入參數。
switch_company
Switch Company
Issue a new MCP access token scoped to another company/organisation. This does not mutate the current MCP connection: the client must use the returned token on later /mcp requests. Platform operators should prefer explicit-company admin tools when available.
輸入參數companyId必填
List CMS posts (blog posts and/or pages) with optional filters.
輸入參數typelimitsearchstatus
Get detailed CMS post including content blocks, categories, and tags.
輸入參數postId必填
Create a new CMS post (blog_post, page, or any custom post type). The post type must already exist — use list_post_types to discover, create_post_type to add a new one. excerpt = plain-text summary only (auto-derived from blocks if omitted). Structured custom fields go in meta, keyed by the field schema defined with create_post_type_field.
輸入參數metaslugtype必填title必填blocksstatustagIdsexcerptparentIdseoTitlesortOrdervisibility另有 4 個
Update an existing CMS post (any post type). Only provided fields are changed.
輸入參數metaslugtypetitleblockspostId必填statustagIdsexcerptparentIdseoTitlesortOrder另有 5 個
Delete a CMS post by ID. Soft-deleted posts can be restored with restore_post.
輸入參數postId必填
Restore a previously deleted CMS post.
輸入參數postId必填
list_image_models
List Image Models
List AI image-generation models exposed to merchants (sanitized — provider/cost details hidden). Use to pick a `modelCode` for `generate_post_cover`.
無需輸入參數。
generate_image
Generate Image
Generate an AI image via kie.ai and return its public R2 URL. Use to mint reusable URLs for content blocks (image, gallery), product photos, or any field that takes an image URL — does NOT attach to a post by itself. Costs credits (see list_image_models). On poll timeout the job continues running; pass `jobId` from the response to merchant ai-media APIs to retrieve it later.
輸入參數seedprompt必填modelCode必填aspectRatiopollTimeoutMsnegativePromptpollIntervalMs
generate_post_cover
Generate Post Cover
Generate an AI image and attach it as a post's featuredImage. Submits a kie.ai job, polls until complete, copies the result into the canonical post-asset R2 folder, and writes the public URL onto the post. Costs credits (see list_image_models). On poll timeout, the job continues — call attach_post_cover_from_job(postId, jobId) once it finishes to attach without paying again.
輸入參數seedpostId必填prompt必填modelCode必填aspectRatiopollTimeoutMsnegativePromptpollIntervalMs
attach_post_cover_from_job
Attach Post Cover From Job
Attach a previously generated ai-media job's output as the post's featuredImage. Use when generate_post_cover timed out (job kept running) or when reusing the same generation across multiple posts. Verifies the job belongs to your company and succeeded. Does NOT charge credits — credits were charged at submit time.
輸入參數jobId必填postId必填assetIndexpollIfRunningpollTimeoutMs
upload_post_cover_from_url
Upload Post Cover From Url
Download an external image URL into R2 and attach it as the post's featuredImage. Replaces the manual flow of pasting external URLs (which break when the source goes down). Validates content-type starts with `image/` and rejects payloads larger than 20 MB. No AI credits charged — only standard storage.
輸入參數postId必填sourceUrl必填
list_categories
List Categories
List CMS post categories.
無需輸入參數。
create_category
Create Category
Create a CMS post category (e.g. "Equipment", "Injection — Botox"). For sub-categories, use namespaced names — the table is flat.
輸入參數name必填slugsortOrderdescription
update_category
Update Category
Update a CMS post category.
輸入參數nameslugsortOrdercategoryId必填description
delete_category
Delete Category
Delete a CMS post category. Posts in the category are not deleted; they are simply unlinked.
輸入參數categoryId必填
restore_category
Restore Category
Restore a previously deleted CMS post category.
輸入參數categoryId必填
list_post_types
List Post Types
List all post types defined for this company (built-in: blog_post, page; plus any custom types).
無需輸入參數。
create_post_type
Create Post Type
Define a new custom post type (e.g. "treatment", "service"). Required before creating posts of that type. After creating a post type, use create_post_type_field to define its structured field schema. Those fields are stored in meta on each post — do not use excerpt for structured data.
輸入參數iconslug必填label必填sortOrderlabelPlural必填supportsBlockssupportsExcerptsupportsNestingsupportsCategoriessupportsFeaturedImage
list_post_type_fields
List Post Type Fields
List the custom field schema for a post type. Use this before creating posts to know which keys to pass in meta and what types they expect.
輸入參數postTypeId必填
create_post_type_field
Create Post Type Field
Add a custom field to a post type schema. The field key becomes the key in meta when creating/updating posts. Use fieldType="repeater" with fields=[...] for repeatable structured rows. Use this instead of storing structured data in excerpt.
輸入參數keylabel必填fieldsoptionshelpTextrequiredfieldType必填sortOrderpostTypeId必填
update_post_type
Update Post Type
Update a custom post type. Built-in types (blog_post, page) cannot be modified.
輸入參數iconlabelsortOrderpostTypeId必填labelPluralsupportsBlockssupportsExcerptsupportsNestingsupportsCategoriessupportsFeaturedImage
delete_post_type
Delete Post Type
Delete a custom post type. Built-in types cannot be deleted. Fails if any posts of this type still exist — delete those first.
輸入參數postTypeId必填
restore_post_type
Restore Post Type
Restore a previously deleted custom post type.
輸入參數postTypeId必填
update_post_type_field
Update Post Type Field
Update a field on a post type schema. Changing fieldType or flipping required=true is blocked when posts already use the field unless force=true is passed.
輸入參數forcelabelfieldsfieldId必填optionshelpTextrequiredfieldTypesortOrderpostTypeId必填
delete_post_type_field
Delete Post Type Field
Remove a field from a post type schema. Blocked when posts of this type still have data in the field unless force=true is passed (orphans the data).
輸入參數forcefieldId必填postTypeId必填
restore_post_type_field
Restore Post Type Field
Restore a previously deleted field on a post type schema.
輸入參數fieldId必填postTypeId必填
reorder_post_type_fields
Reorder Post Type Fields
Reorder fields on a post type. Pass field IDs in the desired display order; sortOrder is updated to match.
輸入參數postTypeId必填orderedFieldIds必填
append_post_block
Append Post Block
Append one or more blocks to the end of a post. Each block must be a valid block object: { id, version, type, data }. Types: paragraph, heading, image, list, quote, code, divider, spacer, embed, html, youtube, file, faq, callout, gallery, cta, accordion, product.
輸入參數blocks必填postId必填
replace_post_block
Replace Post Block
Replace a single block at the given index (0-based). Avoids fetching the full post and re-sending all blocks via update_post.
輸入參數block必填index必填postId必填
remove_post_block
Remove Post Block
Remove the block at the given index (0-based). All subsequent blocks shift up by one.
輸入參數index必填postId必填
reorder_post_blocks
Reorder Post Blocks
Reorder blocks by passing block IDs in the desired order. The id list must contain every existing block id exactly once.
輸入參數postId必填orderedBlockIds必填
create_booking
Create Booking
Create a new booking for a member. Use get_available_slots first to find valid times, then create the booking with the service, member, date, and time.
輸入參數notesendTime必填staffIdaccountId必填serviceId必填startTime必填resourceIdbookingDate必填
get_conversation_messages
Get Conversation Messages
Get messages from a specific conversation thread. Shows the chat history between the merchant and a contact.
輸入參數pagelimitsearchconversationId必填
find_or_create_workroom_thread
Find Or Create Workroom Thread
Find or create a Workroom DM thread between a merchant user and an AI colleague. Use this when an inbound event deserves owner attention but no threadId was provided. This only prepares an internal Workroom channel.
輸入參數titleuserIdagentId必填
get_attachment_text
Get Attachment Text
Read the text/Markdown content of a file attached to a Workroom thread or sent by a customer (PDF, image, or document). Extracts on first read and caches the result. Returns status "ready" with markdown, or "skipped"/"failed"/"not_found" with a reason. Use when a message references an attachment you need to read.
輸入參數attachmentId必填
post_workroom_message
Post Workroom Message
Post an internal message from an AI colleague into a Workroom thread. Use this to report findings, ask the owner for approval, or share source links after reading CRM/Inbox data. This does not send anything to customers.
輸入參數agentId必填content必填metadatathreadId必填
create_inbox_reply_suggestion
Create Inbox Reply Suggestion
Create a draft reply suggestion that appears inline in the FavCRM Inbox composer. Use this for message.inbound events with replyPolicy="suggest"; it does not send anything to the customer.
輸入參數body必填agentId必填subjectmetadataconversationId必填sourceMessageId
request_send_approval
Request Send Approval
Create a merchant-owned Workroom approval request for a customer-facing send. The agent must not call send_message, send_whatsapp_message, send_test_campaign, or send_campaign directly.
輸入參數agentId必填payload必填summary必填threadId必填actionType必填
list_segments
List Segments
List customer segments. Segments group members by criteria for targeted campaigns.
輸入參數limitsearch
Get customer segment details including type, criteria, and live member count.
輸入參數segmentId必填
get_segment_members
Get Segment Members
Get the members that belong to a specific segment.
輸入參數limitsegmentId必填
create_segment
Create Segment
Create a new customer segment. Use STATIC for manual member lists, DYNAMIC for criteria-based auto-filtering.
輸入參數name必填criteriadescriptionsegmentType
update_segment
Update Segment
Update an existing customer segment by id. Pass only the fields to change; criteria replaces the existing rules.
輸入參數namecriteriasegmentId必填descriptionsegmentType
preview_segment_count
Preview Segment Count
Preview how many customers would match dynamic segment criteria before creating or updating a segment.
輸入參數criteria
set_segment_members
Set Segment Members
Replace the members of a STATIC customer segment with the given account IDs. The segment is converted to STATIC.
輸入參數segmentId必填accountIds必填
delete_segment
Delete Segment
Delete a customer segment.
輸入參數segmentId必填
list_templates
List Templates
List the company's WhatsApp message templates with their Meta approval status (PENDING / APPROVED / REJECTED). Check this to see which templates are approved before referencing one in a campaign.
輸入參數limit
create_template
Create Template
Create and submit a WhatsApp message template to Meta for approval. Text templates only (header text, body with {{1}} variables, footer) — add buttons in the app. The template is NOT usable until Meta approves it (check with list_templates). Submitting consumes the store’s Meta template allowance.
輸入參數name必填footermessage必填category必填languageheaderTextvariableSamples
List shop outlets/locations for the company.
輸入參數activeOnly