Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

"Accessibility Text" method in GoogleAssistant CardImage #45

Open
davidmarinangeli opened this issue Nov 25, 2017 · 2 comments
Open

"Accessibility Text" method in GoogleAssistant CardImage #45

davidmarinangeli opened this issue Nov 25, 2017 · 2 comments

Comments

@davidmarinangeli
Copy link

Hello guys, I'm developing an Actions On Google app and, developing a list of CardItem I've realised a little bug of your library.

In the CardImage method is missing an important tag called "accessibility_text" that gives the following error on Google Assistant:

MalformedResponse
expected_inputs[0].possible_intents[0].input_value_data.option_value_spec.list_select.items[0].image: 'accessibility_text' is required.

I would like to help you and add it by myself: could i fork and pull request it?

@schokkalingom
Copy link

Hi @davidmarinangeli : Were you able to understand what is this MalformedResponse issue ? Do we need a desirable JSON format that Google Assistant can understand ? Appreciate your inputs.

@davidmarinangeli
Copy link
Author

Hi! I totally forgot this issue but I can give you some further info that I have learnt: the Malformed Response issue happens because of the lack of "accessibility_text" tag in the JSON.

Actions on Google console gives me this error (...but I think that's a warning since the app works anyway):

MalformedResponse
expected_inputs[0].possible_intents[0].input_value_data.option_value_spec.carousel_select.items[0].image: 'accessibility_text' is required.

Furthermore in the documentations of Rich Responses

"basicCard": {
                                "title": "Math & prime numbers",
                                "formattedText": "42 is an even composite number. It\n    is composed of three distinct prime numbers multiplied together. It\n    has a total of eight divisors. 42 is an abundant number, because the\n    sum of its proper divisors 54 is greater than itself. To count from\n    1 to 42 would take you about twenty-one…",
                                "image": {
                                    "url": "https://example.google.com/42.png",
                                    **"accessibilityText": "Image alternate text"**
                                },

as you can see, in the object "Image" there is a field accessibilityText that these APIs don't have.

I really would like to see a big growth of the Java API of Dialogflow since I, and other devs, don't love Node.JS

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants