Use this skill when the user wants to send or receive WhatsApp messages, manage contacts, groups, or WhatsApp instances via GREEN-API.
Before using any tools, connect an instance with whatsapp_connect by providing instance_id and api_token (from console.green-api.com). This validates credentials and stores them for the session.
Call whatsapp_disconnect when done.
79876543210@c.us (phone number in international format + @c.us)120363XXX@g.us or 79876543210-1581234048@g.usToolDescriptionwhatsapp_connectConnect instance (required first). Params: instance_id, api_token, optional api_url``whatsapp_disconnectDisconnect instance and clear credentials
ToolDescriptionwhatsapp_send_messageSend text message. Params: instance_id, chat_id, message, optional quoted_message_id, link_preview``whatsapp_send_fileSend file by URL. Params: instance_id, chat_id, url, optional file_name, caption``whatsapp_upload_fileUpload file to GREEN-API storage, returns URL. Params: instance_id, file_base64, filename. Use returned URL with whatsapp_send_file``whatsapp_send_file_by_uploadSend file directly via base64 (no separate upload step). Params: instance_id, chat_id, file_base64, filename, optional caption``whatsapp_send_locationSend location. Params: instance_id, chat_id, latitude, longitude, optional name, address``whatsapp_send_contactSend contact card. Params: instance_id, chat_id, phone_number, optional first_name, last_name, company``whatsapp_send_pollSend poll. Params: instance_id, chat_id, message (question), options (string array, 2–12), optional multiple_answers``whatsapp_forward_messagesForward messages between chats. Params: instance_id, chat_id (destination), chat_id_from (source), messages (ID array)whatsapp_edit_messageEdit a sent message. Params: instance_id, chat_id, id_message, message (new text)whatsapp_delete_messageDelete a message. Params: instance_id, chat_id, id_message
ToolDescriptionwhatsapp_get_stateGet instance state: authorized, notAuthorized, blocked, sleepMode, starting, yellowCard``whatsapp_get_settingsGet instance settings (webhooks, delays, flags)whatsapp_set_settingsUpdate instance settings. Params: optional webhook_url, webhook_url_token, outgoing_webhook, incoming_webhook, state_webhook, mark_incoming_messages_readed, delay_message, etc.whatsapp_get_qrGet QR code for authorization (instance must be unauthorized)whatsapp_get_authorization_codeGet auth code by phone number (alternative to QR). Params: instance_id, phone_number``whatsapp_get_wa_settingsGet WhatsApp account info (avatar, phone, state, device ID)whatsapp_rebootReboot instancewhatsapp_logoutLog out instance (required before re-authorizing)
ToolDescriptionwhatsapp_check_whatsappCheck if a phone number has WhatsApp. Params: instance_id, phone_number``whatsapp_get_contactsGet all contactswhatsapp_get_contact_infoGet info about a contact or group. Params: instance_id, chat_id``whatsapp_get_contact_avatarGet avatar of contact or group. Params: instance_id, chat_id``whatsapp_get_chat_historyGet chat message history. Params: instance_id, chat_id, optional count (default 100)whatsapp_get_messageGet a specific message. Params: instance_id, chat_id, id_message``whatsapp_last_incoming_messagesGet recent incoming messages. Params: instance_id, optional minutes (default 1440)whatsapp_last_outgoing_messagesGet recent outgoing messages. Params: instance_id, optional minutes (default 1440)whatsapp_read_chatMark messages as read. Params: instance_id, chat_id, optional id_message
ToolDescriptionwhatsapp_receive_notificationGet one notification from the queuewhatsapp_delete_notificationAcknowledge/delete a notification. Params: instance_id, receipt_id
ToolDescriptionwhatsapp_create_groupCreate a group. Params: instance_id, group_name, chat_ids (participant array)whatsapp_get_group_dataGet group info (members, name, link). Params: instance_id, group_id``whatsapp_add_group_participantAdd member. Params: instance_id, group_id, participant_chat_id``whatsapp_remove_group_participantRemove member. Params: instance_id, group_id, participant_chat_id``whatsapp_set_group_adminPromote member to admin. Params: instance_id, group_id, participant_chat_id``whatsapp_remove_group_adminDemote admin. Params: instance_id, group_id, participant_chat_id``whatsapp_leave_groupLeave a group. Params: instance_id, group_id
These require a partner_token from the GREEN-API partner dashboard.
ToolDescriptionwhatsapp_create_instanceCreate a new instancewhatsapp_delete_instanceDelete an instance. Params: partner_token, instance_id``whatsapp_get_instancesList all partner instances
whatsapp://instance/{id}/state — read current instance authorization statewhatsapp://instance/{id}/settings — read instance settingswhatsapp_customer_support — system prompt template for a customer support agent. Args: instance_id, languagewhatsapp_broadcast — template for planning and executing broadcast messaging. Args: instance_id, message_templatewhatsapp_connect before calling any other tool.whatsapp_check_whatsapp to verify a phone number has WhatsApp before sending.