Reputation: 1
MalformedResponse expected_inputs[0].input_prompt.rich_initial_prompt: at most two 'simple_responses' are supported.
This error comes on welcome intent. How to remove this?
Upvotes: 0
Views: 1196
Reputation: 50701
Only send two simple responses, at most.
If you're using the actions-on-google library, this means you only call conv.ask()
with a text string twice in a response. If you're using the dialogflow-fulfillment library, you can only call agent.add()
with a text string twice.
One way around this is to build the string you want to send as a response before you call conv.ask()
or agent.add()
. This way you're sending back just one simple response, even if it contains additional information. There is a 640 character limit on each string sent.
In general - you shouldn't need more than one response. You can say a lot with 640 characters! Having two is to allow for multiple chat bubbles in visual responses where it might make sense (for example, if you wanted to send a reply in one, and prompt something else in the next). Allowing longer than this probably means your response is too long, which can be unpleasant for a spoken conversational design. How long do you listen to someone before you tune them out?
Upvotes: 1