DevConnectAi Tool icon

DevConnectAi Tool

Ferramenta para agentes IA interagirem com WhatsApp via DevConnectAi - Envia mensagens, gerencia contatos, tickets e muito mais

📋 Enviar Lista

AI-generated

Summary

Send a WhatsApp list message to a recipient

Inputs

  • tokenType (required) — Token type to use for authentication (connection, company, or admin)
  • number (required) — Recipient phone number in international format
  • type — Recipient type, either 'user' or 'group'
  • options — Fixed collection defining message options, including delay and reply From
  • groupOptions — Fixed collection for group-specific options such as mention type
  • msgdata — Fixed collection containing message content details like title, description, button text, and footer
  • sections (required) — Array of list sections, each with a title and rows of options

Output shape

array of result objects

Each item includes success flag, operation name, result data, and timestamp; result may be the HTTP response or an error message

Examples

Example 1: Send a simple list to a user

tokenType: connection, number: 551199999999, type: user, sections: [{title: 'Menu', rows: [{rowId: 'opt1', title: 'Option 1', description: 'Desc'}]}], msgdata: {title: 'Test', description: 'Test list', buttonText: 'Ver Opções', footerText: 'https://example.com'}

Example 2: Send a grouped list with a mention

tokenType: connection, number: 551199999999, type: group, groupOptions: {groupOptionsConfig: {markUser: 'mention'}}, sections: [{title: 'Choices', rows: [{rowId: 'a', title: 'Action A'}]}], msgdata: {title: 'Group List', description: 'Choose an action', buttonText: 'Select', footerText: ''}

Example 3: Send a list with a delay

tokenType: connection, number: 551199999999, type: user, options: {optionsConfig: {delay: 2000, replyFrom: ''}}, sections: [{title: 'Options', rows: [{rowId: '1', title: 'One', description: ''}]}], msgdata: {title: 'Delayed List', description: 'Will be sent after 2s', buttonText: 'Start', footerText: ''}

Discussion