![]() On the Review and launch page, choose Launch campaign. On the Choose when to send the campaign page, keep all of the default values, and then choose Next. In Create your message, choose the AWS Lambda function we just created, ‘WhatsAppTest.’ Select SMS in the Endpoint Options. ![]() On the Choose a segment page, choose the “WhatsAppTest” segment that you just created, and then choose Next.ĩ. Name the campaign “WhatsAppTest.” Under Choose a channel for this campaign, choose Custom, and then choose Next.Ĩ. In the navigation pane, choose Campaigns, and then choose Create a campaign.ħ. Confirm that the Segment estimate section shows that there is one eligible endpoint, and then choose Create segment.Ħ. For Choose an endpoint attribute, choose integrations, then for values, choose WhatsApp.ĥ. Name the segment “WhatsAppTest.” Under Segment group 1, on the Add a filter menu, choose Filter by endpoint.Ĥ. In the navigation pane, choose Segments, and then choose Create a segment.ģ. Open the Amazon Pinpoint console at, and then choose the project that you created in step 1.Ģ. ![]() By sending a campaign, we can verify that our Amazon Pinpoint project is configured correctly, and that we created the endpoint correctly.ġ. Now that we have an endpoint, we must add it to a segment so that we can use it within a campaign. source-arn arn:aws:mobiletargeting:us-east-1::apps/* Step 4: Create a segment and campaign in Amazon Pinpoint. Add permissions to your AWS Lambda to allow Amazon Pinpoint to invoke it: Add environment variables for your Twilio Account SID, Auth token, and From Number that you acquired from the prerequisite steps.Ĩ. Return "WhatsApp messages sent successfully"ħ. To create an endpoint using AWS CLI, at the command line, enter the following command:Īws pinpoint update-endpoint -application-id \ In this step, we create an SMS endpoint that is used to send a WhatsApp message. Endpoints can also contain custom attributes, and you can associate multiple endpoints with a single user. This could be their email address (for email messages) or their phone number (for SMS messages) or a custom endpoint type. In Amazon Pinpoint, an endpoint represents a specific method of contacting a customer. In the Project details section, copy the value under Project ID. In the navigation pane, under Settings, choose General settings.Under General settings, select Enable the SMS channel for this project, and then choose Save changes.On the Configure features page, under SMS and Voice, choose Configure.Enter a name for the project, and then choose Create. On the All projects page, choose Create a project.Sign in to the Amazon Pinpoint console at.Later, you use this data to create segments and campaigns. In this section, you create and configure a project in Amazon Pinpoint. Step 1: Create an Amazon Pinpoint project. For more information about setting up the AWS CLI, see Configuring the AWS CLI. Remember to review the terms of use for both Twilio and WhatsApp, as well as Twilio sandbox limitations. Save the account SID and Auth token as both are needed in a later step. Join your WhatsApp account to the sandbox to be able to receive messages. Follow the steps at to create a new Twilio account.Specify the credentials of this IAM user when you set up the AWS Command Line Interface (CLI). For more information, see Creating your first IAM admin user and group in the IAM User Guide. Prerequisitesīefore creating your new custom channel, you must have the integration ready and an Amazon Identity and Account Management (IAM) user created with the necessary permissions. Amazon Web Services isn’t responsible for any third-party service that you use to send messages with custom channels. Note: Twilio and WhatsApp are third-party services subject to additional terms and charges. ![]() We also provide a blueprint that you can use to build your first sandbox integration with WhatsApp as a custom channel. In this post, we provide a quick overview of the features and capabilities of using a custom channel as part of campaigns. With these new channels, you have full control over the message delivery to the endpoints associated with each custom channel campaign. Among many other possibilities, you can use custom channels to send messages to your customers through any API-enabled service, for example WhatsApp. Custom channels enable you to extend the capabilities of Amazon Pinpoint via a webhook or AWS Lambda function. – Updated for clarity on Twilio sandbox requirementsĪmazon Pinpoint recently announced the general availability of custom channels. 3/30/23 – Update – Please use this blog to create WhatsApp as a channel using Pinpoint without Twilio ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |