As below, it appears your plugin functionality is due to be depracted in Nov 2024, but it may be that form a new account it doesnt work. Clearly as you have seen from the Loom video, it does not work as described even with the simplest use case.
Hello David,
Thank you for your reply.
WhatsApp messages are subject to certain rules and restrictions that do not apply to standard Twilio Programmable SMS and MMS messages. It’s important to understand how “templates” and “sessions” work with WhatsApp, and design your messaging flow to follow WhatsApp’s rules.
Templates and Sessions:
All messages sent from your WhatsApp number (or from the Twilio Sandbox) must follow a pre-approved template , unless the end user has messaged you first. After a user sends you a message, you have a 24-hour session to send sessionmessages (or freeform messages) to that user. Session messages do not need to follow a template, and can include media attachments. The 24-hour session restarts each time that user sends you a new incoming message.
Twilio currently has two template creation platforms, detailed below:
Content Template Builder: Create rich content (text, media, CTA buttons, quick reply, list picker and more) through console or API and send templates using a template SID across multiple channels including WhatsApp, SMS, MMS, Facebook Messenger and Google Business Messages.
WhatsApp Templates: Create basic templates (text, CTA buttons and quick reply) through the console for use on WhatsApp. Message body must match template body to send. This platform will be deprecated on November 1st, 2024, therefore, if you are just starting out you should only use Content Template Builder. Seeherefor more information.
We’ll further discuss this with our developers to explore potential adjustments in response to any upcoming API changes. We aim to ensure our plugin continues to function effectively. Rest assured, we will update you on any decisions made. The current API we utilize is still active and should operate without issues.
Our thorough testing on a sandbox account, utilizing Twilio’s provided templates, demonstrates successful template sending. This is evident on both WhatsApp and our demo page, with only the body content being sent, not requiring the ContentSID parameter introduced by the newer API.
Could you please verify if your templates were created through the WhatsApp Template Console rather than the new Content Template Builder? This difference could be a factor in the issue you’re experiencing.
After discussing with our developer, we understand that the current behavior is expected until the API becomes deprecated, which shouldn’t impact the plugin’s functionality.
Could you please let us know where the templates were created so we can explore further options? Your feedback would be greatly appreciated.
I see you recently updated the plugin in order to add templates, thank you for the effort.
Unfortunately, you have removed the backend actions and now we cannot schedule sending messages. Are you planning to add the actions to the backend anytime soon? This was working perfect until now so now we have lost the functionality. I would appreciate the urgency.
EDIT: The actions are still present in backend, the names were changed to “Send message” and “Send message with template” (not including WhatsApp) so I could not spot them. Thank you!
EDIT 2: Something wrong, messages not being sent. See screenshots below
Thanks so much for reaching out to us and for using our plugin Our deepest apologies for any inconvenience created by this error!
Could you please show us how you set up the plugin on your side? Feel free to send us some screenshots or a screen recording using Loom.com (or another preferred tool) showing your setup, data you provide this action and how this error happens on your page. We will try our best to get to the bottom of this behavior!
EDIT: Just found the messaging service ID, which is different from what I had put before. But still receiving some error message. Not sure of the reason?
How should i identify the template, using “Template name” or “Content template SID”?
Do you see any error in the json structure? Tried both with " and without
Please ensure that the format is exactly as in the example above, as it’s case-sensitive. We noticed some extra spaces in the video recording (either by pressing the spacebar multiple times or copying from another source), also please keep in mind that the quotes might change their format when copying from another source (visible even here on the forum - please see this screenshot on how the quotes should look like). In your case, could you please add the following code to the field and try again?
If this suggestion doesn’t resolve the error and you continue to encounter this behavior, please add us to the list of plugin collaborators so we can investigate further!
To ensure that the editor URL doesn’t get lost in our email inbox, please send us the editor link too (along with any necessary credentials for accessing the editor and preview page).
Feel free to include this information here, but if you prefer not to make it publicly available, you can always direct message us or send an email to support@zeroqode.com.
We hope to hear from you soon and resolve this issue.
Unfortunately it did not work after following your comments. So I ended up taking a look at Twilio’s API as you suggested and configured the whole Twilio API in the API connector when I found it was quite easy.
Sorry but no need to use the plugin anymore. I hope you can configure it correctly and specially add more endpoints if you want the plugin to be worthy.
It looks like the “Invalid Parameter” error could be related to the format of the phone numbers or the setup of the template variables.
More info in the supporting documentation: Twillio Whatsapp Plugin
Here are some steps to check and possibly resolve the issue:
Phone Number Format:
Make sure that both the “From” and “To” phone numbers are in e.164 format, which includes the “+” symbol, followed by the country code and the full phone number (e.g., +15551234567).
Avoid any spaces, dashes, or special characters in the number. Click on Show documentation for additional information on each field.
Double-check that the variables you’re passing (like {{1}}, {{2}}, etc.) match the template structure on Twilio’s end. Each placeholder should correspond to the correct variable in your plugin’s configuration.
Ensure all required variables in your template have values assigned.
Messaging Service SID:
Confirm that the Messaging Service SID you entered is correct and corresponds to the WhatsApp setup on Twilio. You can verify this in your Twilio console under Messaging Services.
Double-Check the Template ID:
Ensure that the template ID used matches an approved template on Twilio for WhatsApp, as unapproved or incorrectly referenced templates may trigger an error.
Please go through these steps and let us know if the issue persists. Hopefully, this resolves the error!