Send Message to a Pinpoint Custom Channel

1

I have setup a Pinpoint custom channel Lambda (as per the Pinpoint documentation). I'd like to use this custom channel to send messages to Slack groups. What approaches are available to send a message to my custom Slack channel?

I can only find one approach based on this AWS Pinpoint documentation: "The MessageConfiguration object in the campaign must also contain a CustomMessage object. This object has one member, Data. The value of Data is a JSON string that contains the message payload that you want to send to the custom channel."

My interpretation of this is: a. Use the API to create a new campaign and use the MessageConfiguration.CustomMessage.Data property. b. Edit an existing campaign and set the MessageConfiguration.CustomMessage.Data property.

The Pinpoint AWS Console doesn't allow adding a message to a custom channel campaign. The Pinpoint SendMessages API doesn't seem to support sending to a custom channel.

demandé il y a 2 ans801 vues
3 réponses
1

There are a couple of custom channel examples like this but they all hard code the message. For example, the above sample contains this code:

"""Construct your message here.  You have access to the endpoint profile to personalize the message with Attributes.
`message = "Hello {name}!".format(name=endpoint_profile["Attributes"]["FirstName"])`
"""
message = 'Hello World! - Pinpoint Slack Channel'

I was expecting a custom channel to behave like any other channel. The docs state: "Custom channels in Amazon Pinpoint allow you to send messages through any service that has an API, including third-party services."

répondu il y a 2 ans
0

Hello there. That's indeed a very interesting use case. Have you had the chance to look at this resource https://github.com/aws-samples/amazon-pinpoint-slack-channel please?

répondu il y a 2 ans
0

I second this functionality. It makes very little sense that custom channels are not "1st class citizens" of pinpoint in the sense that you can't use the email template builder or SMS builder UI.

What if you already have the sending infrastructure in place (SMS Gateways & SMTP MTAs/relays) and just want to use pinpoint for campaigns and user engagement? Custom channels seem like the right tool to do the job until you find out that you can't actually define your own messages.

mv
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions