Enviar template
aspa_send_templateSends an approved WhatsApp template outside the 24-hour window after explicit user approval, enabling customer or team messaging when standard replies are restricted.
Instructions
Send an approved WhatsApp template (works outside the 24h 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>",
"template": "<template>"
},
"name": "aspa_send_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| template | Yes | Template name from aspa_list_templates. | |
| variables | No | Values for the template variables, in order. | |
| 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. |