Digital Assistant and Mobile

Get Involved. Join the Conversation.

Topic

    Ameur Baccoucha
    Notification PushAnswered
    Topic posted October 25, 2018 by Ameur BaccouchaGold Medal: 3,500+ Points, tagged Bots, Conversational AI, Messaging, Notification, Virtual Assistant 
    248 Views, 3 Comments
    Title:
    Notification Push
    Summary:
    how can we send notifications to a specific user through the bot?
    Content:

    HI,

    Can we send a message automatically to users (we already had a discussion) to inform them of certain news or the occurrence of an event?

    how can develop it ? 

    Ameur 

    Thank you

    Version:
    ODA 18.3.2_1808150141

    Best Comment

    Grant Ronald

    Are you looking for the bot to asynchronously message a person?  Generally speaking this is not supported on messenger platforms even if you already had a conversation. I believe Facebook are looking to offer this kind of functionality as a paid for service.

    Comment

     

    • Grant Ronald

      Are you looking for the bot to asynchronously message a person?  Generally speaking this is not supported on messenger platforms even if you already had a conversation. I believe Facebook are looking to offer this kind of functionality as a paid for service.

    • Ruben Rodriguez

      Hello,

      We have a custom API that is using Facebook Message API to send messages to a user.
      You have to keep in mind that this message can only be informative. For example, we send the confirmation of an appointment. If you want the user to do some action, you should define an intent for that and explain the user how to get to it (e.g. "To confirm your appointment please type 'Confirm appointment')

      https://graph.facebook.com/v2.6/me/messages?access_token=<ACCESS_TOKEN>

      Payload:

      {  
         "messaging_type":"RESPONSE",
         "recipient":{  
            "id": <FACEBOOK_ID>
         },
         "message":{  
            "text": <MESSAGE>
         }
      } 

      In other channels, you have to find a way to do it, for example, in a web widget you can have a call to a service that checks for new notifications every x seconds (stored in a db table for example) for that especific user and then using the widget SDK send a mesasge to the user.

      Hope it helps.

      regards,
      Ruben.