Enviar mensagem
aspa_send_messageSends an approved free-text WhatsApp message to a customer within the 24-hour response window, using contact details and optional conversation ID to target the correct chat.
Instructions
Send a free-text WhatsApp message to the customer. Only works inside the 24h response window. This is a real action visible to the customer or the team. Only call it after the user explicitly approved this exact action in the conversation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contact": "<contact>",
"text": "<text>"
},
"name": "aspa_send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Exact message text in pt-BR. | |
| index | No | Index from aspa_list_conversations, only to tell apart contacts with the same name. | |
| contact | Yes | Contact name exactly as listed. Required for every action that changes a conversation. | |
| conversation_id | No | conversation_id returned by aspa_read_conversation. When given, the action is refused if the open conversation is a different one. | |
| confirm_duplicate | No | Only true when the user explicitly wants to repeat the same message sent less than 2 minutes ago. |