DevConnectAi Tool icon

DevConnectAi Tool

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

�� Enviar Mensagem

AI-generated

Summary

Send a message via WhatsApp, optionally attaching media, contact data, ticket fields, delay, and chatbot settings.

Inputs

  • tokenType — Type of authentication token to use (connection, company, or admin).
  • number (required) — Recipient phone number in international format (e.g., 5511999999999).
  • body (required) — Text content of the message.
  • url — URL of media (image, video, audio, or document) to attach.
  • contact — Fixed collection of contact details (name, email) to associate with the message.
  • queueId — ID of the queue to assign the ticket to; leave empty to not update.
  • status — Status of the ticket to set (open, closed, pending).
  • userId — ID of the user to assign the ticket to; leave empty to not update.
  • tagId — ID of the tag to add to the ticket; leave empty to not update.
  • msdelay — Delay in milliseconds before sending; 0 means no delay.
  • isInternal — Mark the message as internal so it is not sent to the client.
  • flowOn — Enable (true) or disable (false) the chatbot flow for ticket organization.

Output shape

Array of result objects

Each result includes success flag, operation name, result data from the API response, and timestamp; on failure an error field is present.

Examples

Example 1: Send a simple text message to a contact

tokenType: connection, number: 551199999999, body: "Olá, tudo bem?", isInternal: false

Example 2: Send a media message with ticket assignment

tokenType: company, number: 551199999999, body: "Confirmação de reunião", url: "https://example.com/image.jpg", queueId: 5, status: "open", flowOn: true

Discussion