Skip to main content
Glama

Titanmind WhatsApp MCP

by TitanmindAGI
MIT License
15
  • Apple
  • Linux

register_msg_template_for_approval

Creates and registers WhatsApp message templates for approval by defining components like headers, body, footer, and buttons.

Instructions

creates and registers a new whatsapp message template for approval. Args: template_name (str): name of the whatsapp message template, It only accepts a single word without no special characters except underscores language (str): language of the whatsapp message template (default is "en") category (str): category of the whatsapp message template (default is "MARKETING"), other possible values are "UTILITY", "AUTHENTICATION" message_content_components (dict): the message content that needs to be sent. It needs to be structured like the below example, components are required to have BODY component at least, like this: {"type": "BODY", "text": "lorem body text"}, BODY component is for the simple text. All other components are optional. HEADER component can have any of the below format, but only one format at a time can be used.: TEXT(the header component with TEXT needs to be like this { "type": "HEADER", "format": "TEXT", "text": "lorem header text" } ), VIDEO(the header component with VIDEO needs to be like this { "type":"HEADER", "format":"VIDEO", "example":{ "header_handle":[ "https://sample_video_url.jpg" ] } } ) , IMAGE(the header component with IMAGE needs to be like this { "type":"HEADER", "format":"IMAGE", "example":{ "header_handle":[ "https://sample_image_url.jpg" ] } }), DOCUMENT (the header component with DOCUMENT needs to be like this { "type":"HEADER", "format":"DOCUMENT", "example":{ "header_handle":[ "https://sample_document_url" ] } }), message_content_components value with all other type of components is mentioned below. [ { "type": "HEADER", "format": "TEXT", "text": "lorem header text" }, { "type": "BODY", "text": "lorem body text" }, { "type": "FOOTER", "text": "lorem footer text" }, { "type": "BUTTONS", "buttons": [ { "type": "QUICK_REPLY", "text": "lorem reply bt" }, { "type": "URL", "text": "cta", "url": "https:sample.in" }, { "type": "PHONE_NUMBER", "text": "call ", "phone_number": "IN328892398" } ] } ] Buttons need to follow order of first QUICK_REPLY, then URL, and then PHONE_NUMBER.

Input Schema

NameRequiredDescriptionDefault
categoryNoMARKETING
languageNoen
message_content_componentsYes
template_nameYes

Input Schema (JSON Schema)

{ "properties": { "category": { "default": "MARKETING", "title": "Category", "type": "string" }, "language": { "default": "en", "title": "Language", "type": "string" }, "message_content_components": { "items": { "additionalProperties": true, "type": "object" }, "title": "Message Content Components", "type": "array" }, "template_name": { "title": "Template Name", "type": "string" } }, "required": [ "template_name", "message_content_components" ], "type": "object" }

Other Tools from Titanmind WhatsApp MCP

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TitanmindAGI/titanmind-whatsapp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server