Skip to contentSkip to navigationSkip to topbar

WhatsApp Group Messaging

Created by: Twilio
  • WhatsApp
  • Conversation
  • Runtime
  • Sync
  • JavaScript

With Twilio's Conversations API, you can implement group chats in WhatsApp, a feature which is not offered natively in WhatsApp's API. With this code sample, you can implement multi-participant chat for up to 50 people that users can opt into and communicate through a single Twilio WhatsApp sender (business profile).

How it works for end users

  • All interactions happen through a WhatsApp sender (business profile), not a native WhatsApp group
  • Free-form discussions in the group can happen during 24-hour sessions
  • Each end user can open up the 24-hour session by sending a message to the business
  • Suggested: Business can send a quick reply button to the end user asking them to "tap to join the group session"
  • After 24 hours, the session ends and the end user will not receive any more group messages.
Report this template(link takes you to an external page)
(information)
  1. Get the code for this project

    The code for this sample is available on GitHub to view.

    View on GitHub(link takes you to an external page)
  2. Get Twilio credentials

    You will need an Account SID and Auth Token in order to run this code.

    Checking for existing account...

  3. Set up the code sample locally

Need some help?

We all do sometimes; code is hard. Get help now from our support team(link takes you to an external page), or lean on the wisdom of the crowd by browsing the Twilio tag(link takes you to an external page)on Stack Overflow.

Terms of servicePrivacy Policy

Copyright © 2025 Twilio Inc.