WhatsApp Business API
Setup Twilio WhatsApp API
16min
overview the secured communications over https from your application will enable private conversations with your users your whatsapp branded business identity will serve as familiar face users see and help you increase brand loyalty whatsapp has an average open rate of over 98%, making it most effective among all channels for sending crucial information like payment reminders/confirmation, order updates, etc advantages of integrating whatsapp api into your website – connect with your customers globally send messages across any mobile os, device, and carrier know the instant a message reaches your users with read recipients secure communication with end to end communication deepen customers’ trust in brand messaging purpose with twilio for whatsapp, you can reach users on the world’s most popular messaging app through one streamlined api, officially supported by whatsapp with real time delivery and reading receipts, get your critical message delivery insights how to integrate requirement for integration requirement for integration certain requirements are to be fulfilled for successful integration, they are your business must be registered as well as verified on the facebook business manager you must have a registered and verified whatsapp business account phone number also, this number should not be linked with another whatsapp business account 1 create account and application 1 create account and application go to twilio https //www twilio com/whatsapp and log in to your account or sign up https //www twilio com/try twilio to start your application, go to the dashboard and from the left hand side panel, navigate to the develop >> messaging >> try it out >> send a whatsapp message here, you’ll find a whatsapp number where you’ll be instructed to send a message save the message on your phone and send the message this number is the sender id (until your application is in sandbox mode), so please save it for future references 2 get the api details 2 get the api details to integrate twilio and use its services, you need to integrate the onprintshop store using account sid and auth token to get the credentials, navigate to the dashboard >> admin >> account management now, click on the api keys & tokens from the left navigation panel this will take you to the " auth tokens & api keys " page scroll down to the auth tokens section here, you will get your account sid and auth token along with the test credentials copy and keep the account sid and auth token somewhere safe and secure 3 3 creating message templates creating message templates note content templates in twilio can only be created for the templates available in the sms notifications section of the onprintshop admin panel in the twilio console, navigate to the develop >> messaging >> content template builder click on the "create your first content template" or "create new" it will redirect you to the next page to enter the template information enter the template name as per the instructions select "english" in the template language from the content type, select "text" type click on the create button on the next screen, the system will ask you to define the body content of the template while defining the message content, you can see the real time preview in the mobile view after body text, as soon as you click on the save and submit for whatsapp approval button, a popup will appear for you to define some samples for the variables used in the message text you can choose to save the template with or without the samples note only the variables listed in the respective sms notifications template (onprintshop admin panel) can be used in the message once the content is saved, it will be sent to meta meta (facebook) for approval and it will be listed in the main screen 4 integration in to admin panel 4 integration in to admin panel in the admin panel, go to the store configuration >> external service setting >> sms notification tab >> twilio whatsapp >> enable the toggle under the edit, enter the account sid , auth token , and the sender id saved in step 1 and step 2 select and assign the countries from the list in the mode field, select the mode from the drop down as live enter the email id save the details after the configuration, click on the go to the map sms templates from the sms templates mapping section first of all, click on the sync templates button from the top right corner of the screen this will fetch and list down all the content templates you have created in the twilio dashboard in the twilio whatsapp template dropdown now, it is time to map the messages from twilio with the admin panel using map templates select the store, email template and the content templates from the drop down click on save and back once you save the configuration details, your customers will be able to see a message under their my profile and registration page asking their consent to opt for whatsapp notifications also, while adding any customer from the admin panel, you’ll get the option to enable the whatsapp notifications for the customer 5 switch to live mode 5 switch to live mode to get your sender id, you would require to connect with the twilio team and make your application live