Coder Social home page Coder Social logo

Comments (8)

jaypatel-searce avatar jaypatel-searce commented on August 17, 2024

I'm having the same issue, Did you solved it??

from fulfillment-webhook-json.

Anas-siddiqui avatar Anas-siddiqui commented on August 17, 2024

I'm having the same issue, Did you solved it??

Nope, still waiting for someone from Dialogflow to help.

from fulfillment-webhook-json.

zonder129 avatar zonder129 commented on August 17, 2024

Maybe you forgot to enable webhook?

from fulfillment-webhook-json.

Anas-siddiqui avatar Anas-siddiqui commented on August 17, 2024

Maybe you forgot to enable webhook?

No ,its not a problem with webhook because if my webhook was disabled then the request would have never reached my webhook to expect a response. In this case the webhook is responding back with the above JSON body to prompt the user for SIGN IN card but it doesn't work.

from fulfillment-webhook-json.

zonder129 avatar zonder129 commented on August 17, 2024

I see. My result is the same, but I guess this is exactly what is expected. As I understand, you need to create special event inside Dialogflow to catch response from Actions on Google to your sign in request. It doesn't comes back by default into the same intent it was called from. You can look inside your History in dialogflow and you will find out unhandled event that comes back to you from AoG.
You can read how to properly create helper requests here: https://developers.google.com/actions/assistant/helpers

from fulfillment-webhook-json.

Anas-siddiqui avatar Anas-siddiqui commented on August 17, 2024

I see. My result is the same, but I guess this is exactly what is expected. As I understand, you need to create special event inside Dialogflow to catch response from Actions on Google to your sign in request. It doesn't comes back by default into the same intent it was called from. You can look inside your History in dialogflow and you will find out unhandled event that comes back to you from AoG.
You can read how to properly create helper requests here: https://developers.google.com/actions/assistant/helpers

Even if I use the below JSON body which I got from the Helpers page, it also gives the same result and no request comes back to the webhook for sign in or anything.

{ "payload": { "google": { "conversationToken": "{\"state\":null,\"data\":{}}", "expectUserResponse": true, "expectedInputs": [ { "inputPrompt": { "initialPrompts": [ { "textToSpeech": "PLACEHOLDER_FOR_SIGN_IN" } ], "noInputPrompts": [] }, "possibleIntents": [ { "intent": "actions.intent.SIGN_IN", "inputValueData": {} } ] } ] } } }

from fulfillment-webhook-json.

zonder129 avatar zonder129 commented on August 17, 2024

Hi again, sorry for such a long time to respond. Use the same message as in your first message. Beside that, you will also need to enable sign in action on dialogflow web site in your intent that you expecting that message to come back. Action name is the same as the name of intent you sent to AoG (actions.intent.SIGN_IN), if I'm not mistaking. Look in your history, and I am shoore that you will have unhadled event, for me that was the key to solve this problem. At least, after you send back this request to sign in from fullfilment, account linking that you setted up before, must run.

from fulfillment-webhook-json.

daiangan avatar daiangan commented on August 17, 2024

In Dialogflow, use the payload like this:

{
  "google": {
    "systemIntent": {
      "intent": "actions.intent.SIGN_IN",
      "data": {
        "@type": "type.googleapis.com/google.actions.v2.SignInValueSpec"
      }
    },
    "expectUserResponse": true
  }
}

from fulfillment-webhook-json.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.