Digital Assistant and Mobile

Get Involved. Join the Conversation.

Topic

    Alvin John Margallo
    Error response when invoking App Initiated ConversationAnswered
    Topic posted April 2, 2019 by Alvin John MargalloRed Ribbon: 250+ Points, tagged Bots, Conversational AI, Messaging, Notification 
    91 Views, 2 Comments
    Title:
    Error response when invoking App Initiated Conversation
    Summary:
    Getting an error response from Skill/Digital Assistant when triggered via App Initiated Conversation
    Content:

     Hello Gurus -

       I am doing a proof-of-concept for App Initiated Conversation. I believe I have all setup correctly

    • Twillio Account
    • Twillio Channel
    • Application Configuration
    • Create Digital Assistant
    • Event in the Skill

    I am successfully receiving the text message by invoking the Application endpoint via Postman with the following request body:

    {
      "userId" : "+639998166XXX",
      "messagePayload" : {
        "type" : "application",
     "payloadType" : "InitGreeting",
     "skillName" : "AppInitConvo",
     "channelName" : "NVD_TWILIO_SMS"
      }
    }

    But, the text message I am getting is the standard error message "Oops I'm encountering a spot of trouble. Please try again later..." 

    I am suspecting that the cause is perhaps the Dialogflow but cannot specifically point it out. I pasted here the dialogflow that I am using.

    Appreciate any input!

    Thank you!

     

    Code Snippet:

    Best Comment

    Rohit Dhamija

    Hi,

    1) Can you please remove the skillName in messagePayload and try again.

    skillName is required if you your channel is routing to request to DA

    skillName is not required if your channel is routing to the skill


      "userId" : "+639998166XXX",
      "messagePayload" : {
        "type" : "application",
     "payloadType" : "InitGreeting",

     "channelName" : "NVD_TWILIO_SMS"
      }
    }

     

    Regards,

    Rohit Dhamija

    Comment

     

    • Rohit Dhamija

      Hi,

      1) Can you please remove the skillName in messagePayload and try again.

      skillName is required if you your channel is routing to request to DA

      skillName is not required if your channel is routing to the skill


        "userId" : "+639998166XXX",
        "messagePayload" : {
          "type" : "application",
       "payloadType" : "InitGreeting",

       "channelName" : "NVD_TWILIO_SMS"
        }
      }

       

      Regards,

      Rohit Dhamija

      • Alvin John Margallo

        It works! Thank you Rohit! Although, I don't think its documented in Oracle documentation.  I really appreciate your help!

        I would assume that the payloadType is something like a global identifier which is enough to identify which skill to invoke.