ChatGPT Ready To Use Prompts To Automate WhatsApp

November 1, 2024

Did you know that ChatGPT can write code for you? Let’s use ChatGPT AI to write simple-to-use programs in any programming language to automate WhatsApp Messages, Groups management, Channels and more, with ready-to-use prompts!

In this article, you will find multiple ready-to-use prompts that you can immediately use to automate many WhatsApp tasks like sending messages or adding/removing participants in Groups using the Wassenger API and any programming language, including PHP, C# (.NET), Python, Java, JavaScript, Kotlin, and more!

Here is the list of prompt-ready use cases, click to jump directly on it:

  • Send WhatsApp messages to multiple phone numbers
  • Schedule a WhatsApp message on a specific date
  • Send multimedia WhatsApp messages to a phone number
  • Send poll WhatsApp messages to groups
  • Send WhatsApp messages to a Group
  • Send WhatsApp messages to a Channel
  • Send multimedia WhatsApp messages to a Group
  • Send multimedia WhatsApp messages to a Channel
  • Create WhatsApp Group
  • Add participants to a WhatsApp Group
  • Remove participants to a WhatsApp Group
  • Get the WhatsApp Group invite link and send it to users
  • Validate if a list of phone numbers exists on WhatsApp

🤩 🤖 Wassenger is a complete communication platform and API solution for WhatsApp. Explore more than 100+ API use cases and automate anything on WhatsApp by signing up for a free trial and getting started in minutes!

Send a WhatsApp Group Message

Make a prompt that guides the user to create a program that
sends a custom message to a specified WhatsApp number using the Wassenger API.
Below are the key details needed to configure and run the program:
- Programming language: $LANGUAGE
- Phone number: $NUMBER
- Message Content: $MESSAGE
- Wassenger WhatsApp Device ID (24 characters length): $DEVICE
- Keep the code simple and add inline comments for clarification and human understanding
- Provide detailed instructions on how to download the program, install dependencies and run the program.
- API endpoint: https://api.wassenger.com/v1/messages
- Output in console the API response JSON
- API method: POST
- API body type: JSON
- API required HTTP header: Authorization with the API key
- API body JSON template to use: {
{
"phone": "$PHONE",
"message": "$MESSAGE"
}
Requirements to run the program:
- Wassenger API key (free trial available)
- Connect a WhatsApp number to your account

👉 👉 Use this prompt on ChatGPT clicking here 🤖

Replace $LANGUAGE with your preferred programming language, such as Python, PHP, C#, Node.js, Java, Ruby, Kotlin, etc.

Replace $DEVICE with your Wassenger WhatsApp device ID (24-character length hexadecimal value), which you can find here.

Replace $PHONE and $MESSAGE with the specific recipient’s number and your custom message.

Include the Authorization header with the Wassenger API key

Send multimedia WhatsApp messages to a phone number

This prompt provides instructions for creating a program that sends a
multimedia message (e.g., an image with a caption) to a specified
WhatsApp number using the Wassenger API.
Below are the necessary components to set up and execute the program:
- Programming language: $LANGUAGE
- Phone number: $NUMBER
- Message Content: $MESSAGE
- Media URL: $MEDIA_URL e.g.("https://picsum.photos/seed/picsum/600/400")
- Scheduled Delivery Time: $DELIVER_AT (e.g., "2024-10-30T12:19:32.367Z")
- Media Expiration: $EXPIRATION
- View Once: $VIEW_ONCE (Set true if the media should be viewed only once, otherwise false (default is false))
- Keep the code simple and add inline comments for clarification and human understanding
- Provide detailed instructions on how to download the program, install dependencies and run the program.
- API endpoint: https://api.wassenger.com/v1/messages
- Output in console the API response JSON
- API method: POST
- API body type: JSON
- API required HTTP header: Authorization with the API key
- API body JSON template to use: {
{
"phone": "$PHONE",
"message": "$MESSAGE",
"media": {
"url": "$MEDIA_URL",
"expiration": "$EXPIRATION",
"viewOnce": $VIEW_ONCE
}
}
Requirements to run the program:
- Wassenger API key (free trial available)
- Connect a WhatsApp number to your account

👉 👉 Use this prompt on ChatGPT clicking here 🤖

Replace $LANGUAGE with your preferred programming language, such as Python, PHP, C#, Node.js, Java, Ruby, Kotlin, etc.

Replace $DEVICEwith your Wassenger WhatsApp device ID (24-character length hexadecimal value), which you can find here.

Replace $PHONE, $MESSAGE, $MEDIA_URL, $EXPIRATION, and $VIEW_ONCE with the recipient’s phone number, caption message, media URL, expiration time, and view-once setting.

Include the Authorization header with the Wassenger API key

Create a WhatsApp Group

Create a program that creates a new WhatsApp Group using the Wassenger API.
Here are the instructions:
- Programming language: $LANGUAGE
- Group name: $NAME
- Group description: $DESCRIPTION
- Participants: $PHONE1, $PHONE2, $PHONE3
- Wassenger WhatsApp Device ID (24 characters length): $DEVICE
- Keep the code simple and add inline comments for clarification and human understanding
- Provide detailed instructions on how to download the program, install dependencies and run the program.
- API endpoint: https://api.wassenger.com/v1/devices/$DEVICE/groups
- Output in console the API response JSON
- API method: POST
- API body type: JSON
- API required HTTP header: Authorization with the API key
- API body JSON template to use:
{
"name": "name",
"description": "description",
"participants": [
{
"phone": "phone",
"admin": true
}
],
"permissions": {
"edit": "admins",
"send": "all",
"invite": "admins",
"approval": false
}
}
Requirements to run the program:
- Wassenger API key (free trial available)
- Connect a WhatsApp number to your account

👉 👉 Use this prompt on ChatGPT clicking here 🤖

Replace $LANGUAGE with your preferred programming language, such as Python, PHP, C#, Node.js, Java, Ruby, Kotlin, etc.

Replace $DEVICE with your Wassenger WhatsApp device ID (24-character length hexadecimal value), which you can find here.

Replace $NAMEand $DESCRIPTION with the new group name and description you would like to use.

Replace $PHONE with the participant’s phone numbers you would like to invite to the group. Each phone number must be in E164 format with the country code prefix, e.g. +1234567890.

🤩 🤖 Wassenger is a complete communication platform and API solution for WhatsApp. Explore more than 100+ API use cases and automate anything on WhatsApp by signing up for a free trial and getting started in minutes!

Send scheduled WhatsApp Group Messages

Create a program that sends a text message to a specified WhatsApp number using the Wassenger API.
Below are the key details needed to configure and run the program:
- Programming language: $LANGUAGE
- Phone number: $NUMBER
- Message Content: $MESSAGE
- Scheduled Delivery Time: $DELIVER_AT (e.g., "2024-10-30T12:19:32.367Z")
- Wassenger WhatsApp Device ID (24 characters length): $DEVICE
- Keep the code simple and add inline comments for clarification and human understanding
- Provide detailed instructions on how to download the program, install dependencies and run the program.
- API endpoint: https://api.wassenger.com/v1/messages
- Output in console the API response JSON
- API method: POST
- API body type: JSON
- API required HTTP header: Authorization with the API key
- API body JSON template to use: {
{
"phone": "$PHONE",
"message": "$MESSAGE",
"deliverAt": "$DELIVER_AT"
}
Requirements to run the program:
- Wassenger API key (free trial available)
- Connect a WhatsApp number to your account

👉 👉 Use this prompt on ChatGPT clicking here 🤖

Replace $LANGUAGE with your preferred programming language, such as Python, PHP, C#, Node.js, Java, Ruby, Kotlin, etc.

Enter the WhatsApp Group ID to which the poll should be sent. The Group ID follows the format of $group_ID@g.us (e.g., "1234567890-100000000@g.us").

Ensure that this is the correct Group ID and that the group is accessible from the connected WhatsApp account that you can find here.

Replace $PHONE, $MESSAGE, and $DELIVER_AT with the recipient's phone number, your message, and the scheduled delivery time.

Include the Authorization header with the Wassenger API key

Send multimedia WhatsApp messages to a Group

Create a program that sends a multimedia message (e.g., an image with a caption) to a specific
WhatsApp group using the Wassenger API.
Below are the essential details for configuring and running the program:
- Programming language: $LANGUAGE
- Group ID: $GROUP_ID
- Message Content: $MESSAGE
- Media URL: $MEDIA_URL (e.g., "https://picsum.photos/seed/picsum/600/400")
- View Once: $VIEW_ONCE (Set true if the media should only be viewed once, otherwise set it to false (default is false))
- Wassenger WhatsApp Device ID (24 characters length): $DEVICE
- Keep the code simple and add inline comments for clarification and human understanding
- Provide detailed instructions on how to download the program, install dependencies and run the program.
- API endpoint: https://api.wassenger.com/v1/messages
- Output in console the API response JSON
- API method: POST
- API body type: JSON
- API required HTTP header: Authorization with the API key
- API body JSON template to use: {
{
"group": "$GROUP_ID",
"message": "$MESSAGE",
"media": {
"url": "$MEDIA_URL",
"viewOnce": $VIEW_ONCE
}
}
Requirements to run the program:
- Wassenger API key (free trial available)
- Connect a WhatsApp number to your account

👉 👉 Use this prompt on ChatGPT clicking here 🤖

Replace $LANGUAGE with your preferred programming language, such as Python, PHP, C#, Node.js, Java, Ruby, Kotlin, etc.

Enter the WhatsApp Group ID to which the poll should be sent. The Group ID follows the format of $group_ID@g.us (e.g., "1234567890-100000000@g.us").

Ensure that this is the correct Group ID and that the group is accessible from the connected WhatsApp account that you can find here.

Replace $GROUP_ID, $MESSAGE, $MEDIA_URL, and $VIEW_ONCE with the group ID, caption message, media URL, and view-once setting as required.

Include the Authorization header with the Wassenger API key

Add participants to a WhatsApp Group

Create a program that adds participants to an existing WhatsApp group, with options to set
specific participants as admins or regular members using the Wassenger API.
Below are the key details required to configure and run the program:
- Programming language: $LANGUAGE
- Device ID: $DEVICE_ID
- Group ID: $GROUP_ID
- Participants: $NUMBER (Specify phone: The participant’s phone number in international format, with a leading +. Admin: A Boolean value indicating whether the participant should have admin privileges (true for admin, false for regular member).
- Keep the code simple and add inline comments for clarification and human understanding
- Provide detailed instructions on how to download the program, install dependencies and run the program.
- API endpoint: https://api.wassenger.com/v1/devices/{{device.id}}/groups/{{group_id}}/participants
- Output in console the API response JSON
- API method: POST
- API body type: JSON
- API required HTTP header: Authorization with the API key
- API body JSON template to use: {
{
"participants": [
{
"phone": "$NUMBER",
"admin": true
},
{
"phone": "$NUMBER",
"admin": false
}
]
}
Requirements to run the program:
- Wassenger API key (free trial available)
- Connect a WhatsApp number to your account

👉 👉 Use this prompt on ChatGPT clicking here 🤖

Replace $LANGUAGE with your preferred programming language, such as Python, PHP, C#, Node.js, Java, Ruby, Kotlin, etc.

Enter the WhatsApp Group ID to which the poll should be sent. The Group ID follows the format of $group_ID@g.us (e.g., "1234567890-100000000@g.us").

Ensure that this is the correct Group ID and that the group is accessible from the connected WhatsApp account that you can find here.

Replace the $GROUP_ID, and $NUMBER values with the target WhatsApp Group ID and Participants' phone numbers respectively.

Include the Authorization header with the Wassenger API key

🤩 🤖 Wassenger is a complete communication platform and API solution for WhatsApp. Explore more than 100+ API use cases and automate anything on WhatsApp by signing up for a free trial and getting started in minutes!

Remove participants to a WhatsApp Group

Create a program that remove participants from an existing WhatsApp Group using the Wassenger API.
Below are the key details required to configure and run the program:
- Programming language: $LANGUAGE
- Device ID: $DEVICE_ID
- Group ID: $GROUP_ID
- Participants: $NUMBER (Specify phone: The participant’s phone number in international format, with a leading +).
- Keep the code simple and add inline comments for clarification and human understanding
- Provide detailed instructions on how to download the program, install dependencies and run the program.
- API endpoint: https://api.wassenger.com/v1/devices/{{device.id}}/groups/{{group_id}}/participants
- Output in console the API response JSON
- API method: DELETE
- API body type: JSON
- API required HTTP header: Authorization with the API key
- API body JSON template to use: {
[
"$PHONE_NUMBER",
"$PHONE_NUMBER"
]
Requirements to run the program:
- Wassenger API key (free trial available)
- Connect a WhatsApp number to your account

👉 👉 Use this prompt on ChatGPT clicking here 🤖

Replace $LANGUAGE with your preferred programming language, such as Python, PHP, C#, Node.js, Java, Ruby, Kotlin, etc.

Enter the WhatsApp Group ID to which the poll should be sent. The Group ID follows the format of $GROUP_ID@g.us (e.g., "1234567890-100000000@g.us").

Ensure that this is the correct Group ID and that the group is accessible from the connected WhatsApp account that you can find here.

Replace the $GROUP_ID, and $PHONE_NUMBER as required.

Include the Authorization header with the Wassenger API key

Send poll WhatsApp messages to groups

Create a program that sends a poll message to a specific WhatsApp Group using the Wassenger API.
The program will include a poll with a question and multiple-choice options
for group members to select from.
Here are the required components for setting up and running the program:
- Programming language: $LANGUAGE
- Group ID: $GROUP_ID (e.g., "1234567890-100000000@g.us")
- Poll Question: $POLL_NAME
- Poll Options: $OPTIONS (e.g., ["Red", "Green", "Blue", "Yellow", "Grey", "Black"])
- Keep the code simple and add inline comments for clarification and human understanding
- Provide detailed instructions on how to download the program, install dependencies and run the program.
- API endpoint: https://api.wassenger.com/v1/messages
- Output in console the API response JSON
- API method: POST
- API body type: JSON
- API required HTTP header: Authorization with the API key
- API body JSON template to use: {
{
"group": "$GROUP_ID",
"poll": {
"name": "$POLL_NAME",
"options": $OPTIONS
}
}
Requirements to run the program:
- Wassenger API key (free trial available)
- Connect a WhatsApp number to your account

👉 👉 Use this prompt on ChatGPT clicking here 🤖

Replace $LANGUAGE with your preferred programming language, such as Python, PHP, C#, Node.js, Java, Ruby, Kotlin, etc.

Enter the WhatsApp Group ID to which the poll should be sent. The Group ID follows the format of $group_ID@g.us (e.g., "1234567890-100000000@g.us").

Ensure that this is the correct Group ID and that the group is accessible from the connected WhatsApp account that you can find here.

Replace $GROUP_ID, $POLL_NAME, and $OPTIONS with the target group ID, poll question, and list of poll options.

Include the Authorization header with the Wassenger API key

Send WhatsApp messages to a Channel

Create a program that sends a custom text message to a specific WhatsApp channel using the Wassenger API.
Here are the key details required to set up and execute the program:
- Programming language: $LANGUAGE
- Channel ID: $CHANNEL_ID (e.g., "1234567890100000000@newsletter")
- Message Content: $MESSAGE
- Keep the code simple and add inline comments for clarification and human understanding
- Provide detailed instructions on how to download the program, install dependencies and run the program.
- API endpoint: https://api.wassenger.com/v1/messages
- Output in console the API response JSON
- API method: POST
- API body type: JSON
- API required HTTP header: Authorization with the API key
- API body JSON template to use: {
{
"channel": "$CHANNEL",
"message": "$MESSAGE"
}
Requirements to run the program:
- Wassenger API key (free trial available)
- Connect a WhatsApp number to your account

👉 👉 Use this prompt on ChatGPT clicking here 🤖

Replace $LANGUAGE with your preferred programming language, such as Python, PHP, C#, Node.js, Java, Ruby, Kotlin, etc.

Enter the unique identifier for the WhatsApp channel where the message should be sent. Replace {{channel}} with this actual Channel ID, which can be retrieved from your Wassenger account.

Ensure that the channel ID is valid and accessible by the WhatsApp device connected to Wassenger which you can find here.

Replace $CHANNEL and $MESSAGE with the actual Channel ID and your desired message.

Include the Authorization header with the Wassenger API key

Get the WhatsApp Group invite link and send it to users

Create a program that retrieves a WhatsApp group invite link and then sends it as a message to specific
users using the Wassenger API.
Below are the essential components to set up and run the program:
- Programming language: $LANGUAGE
- Group ID: $GROUP_ID
- Wassenger WhatsApp Device ID (24 characters length): $DEVICE
- Keep the code simple and add inline comments for clarification and human understanding
- Provide detailed instructions on how to download the program, install dependencies and run the program.
- API endpoint: https://api.wassenger.com/v1/devices/{{device.id}}/groups/{{group_id}}/invite
- Output in console the API response JSON
- API method: GET
- API required HTTP header: Authorization with the API key
Requirements to run the program:
- Wassenger API key (free trial available)
- Connect a WhatsApp number to your account

👉 👉 Use this prompt on ChatGPT clicking here 🤖

Replace $LANGUAGE with your preferred programming language, such as Python, PHP, C#, Node.js, Java, Ruby, Kotlin, etc.

Enter the WhatsApp Group ID to which the poll should be sent. The Group ID follows the format of $group_ID@g.us (e.g., "1234567890-100000000@g.us").

Ensure that this is the correct Group ID and that the group is accessible from the connected WhatsApp account that you can find here.

Replace $LANGUAGE, $GROUP_IDwith the group ID, caption message, media URL, and view-once setting as required.

Include the Authorization header with the Wassenger API key

Validate phone numbers exist on WhatsApp

Create a program that validates a list of phone numbers using the Wassenger API.
Here are the instructions:
- Programming language: $LANGUAGE
- Phone numbers are loaded from a local CSV file called numbers.csv
- Validate and filter loaded phone numbers that are not E164 format compatible
- Output useful information in the console to show the validation progress
- Save the results as a CSV file in numbers_validation.csv
- Keep the code simple and add inline comments for clarification and human understanding
- Provide detailed instructions on how to download the program, install dependencies and run the program.
- API endpoint: https://api.wassenger.com/v1/exists
- API method: POST
- API body type: JSON
- API required HTTP header: Authorization with the API key
- API body JSON format: {"phone": "$PHONE_NUMBER"}
- The API will return a JSON with the field "exists" as "true" if the number exists, otherwise "false"
Requirements to run the program:
- Wassenger API key (free trial available)
- Connect a WhatsApp number to your account

👉 👉 Use this prompt on ChatGPT clicking here 🤖

Replace $PHONE_NUMBER with the mobile phone number to validate in E164 international prefix format, e.g: +1234567890

Replace $LANGUAGE with your preferred programming language, such as Python, PHP, C#, Node.js, Java, Ruby, Kotlin, etc.

🤩 🤖 Wassenger is a complete communication platform and API solution for WhatsApp. Explore more than 100+ API use cases and automate anything on WhatsApp by signing up for a free trial and getting started in minutes!

Ready to transform your WhatsApp communication?

Start automating your customer interactions today with Wassenger

Get Started Free