Set WhatsApp pre-filled Message is a WordPress ability from Joinchat — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Set WhatsApp pre-filled Message

Write
Joinchat Email & CRM joinchat/set-message

Update the pre-filled WhatsApp message sent when a visitor starts a chat, globally or per post/term.

Requires the Joinchat plugin installed on WordPress 6.9+ with the Abilities API available (abilities register on the wp_abilities_api_init hook). The get-phone, set-phone, set-cta, and set-message abilities require the 'edit_posts' capability when a post_id or term_id context is supplied, or the capability returned by Joinchat_Util::capability() (defaults to 'manage_options', filterable via the 'joinchat_capability' filter) for global changes. The get-whatsapp-url ability has no permission check.

What it does

This ability sets the first message pre-filled into WhatsApp when a visitor clicks the Joinchat button, sanitizing the input with sanitize_textarea_field before saving. It writes to a post's _joinchat meta ('message_send'), a term's _joinchat meta, or the site-wide 'message_send' value in the joinchat option, depending on whether post_id or term_id is supplied, using the same post/term/global priority as the other context-aware abilities. An AI assistant can use this to customize the opening chat message visitors send on a specific page, category, or site-wide, and it returns a boolean reflecting whether the update succeeded.

See it in action

You ask your AI assistant

"Set the pre-filled WhatsApp message for post ID 87 to 'Hi! I'm interested in the product on this page.'"

Inputs

Name Type Required Description
message string Yes Pre-filled message text.
post_id integer No Optional post ID for context-specific message. Defaults to 0.
term_id integer No Optional term ID for context-specific message. Defaults to 0.

Returns

A boolean indicating whether the update_post_meta, update_term_meta, or update_option call succeeded.

Permission

Requires the 'edit_posts' capability when a post_id or term_id is supplied, or the capability returned by Joinchat_Util::capability() (defaults to 'manage_options', filterable via 'joinchat_capability') when updating the global message.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.