MBKChat icon

MBKChat

Desfrute da MbkChat_API

Chat → Send Template

AI-generated

Summary

Send a template message with optional footer and buttons to a phone number

Inputs

  • phone (required) — Phone number to send message to (e.g. 5511999999999)
  • templateContent (required) — Message content
  • templateFooter — Footer text
  • templateButtons — Buttons as JSON array

Output shape

an array of objects representing the API response for each processed item

If continueOnFail is disabled, errors are thrown; otherwise successful responses are returned, and errors may appear as items with an error property.

Examples

Example 1: Send a promotional template to a customer

Phone = 5511999999999, templateContent = "Limited time offer", templateFooter = "Special Deal", templateButtons = '[{"DisplayText":"Buy Now","Type":"quickreply"}]'

Example 2: Send a verification code template

Phone = 551234567890, templateContent = "Your verification code is {{code}}", templateFooter = "", templateButtons = '[{"DisplayText":"Enter Code","Type":"quickreply"}]'

Example 3: Send a simple template without buttons

Phone = 5515551234, templateContent = "Your appointment is tomorrow", templateFooter = "", templateButtons = '[]'

Links

Discussion