You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, by returning response in an intent handler renders the default speech.ssml.erb and display.text.erb. These files need to handle all the different conditions if the response needs to be different for different conditions. This will pollute the view file with some if clauses and sharing variables from intent. For example. Consider the following:
# View - intent_handlers/save_bookmarks/speech.ssml.erb
<% if intent.success %><s> You request is successfully processed. </s><%else%><s>Unable to process your request.</s><%end%>
It would be nice if a the response method on intent handlers can accept the response filename argument so that there can be multiple view files for conditions.
Right now, by returning
response
in an intent handler renders the defaultspeech.ssml.erb
anddisplay.text.erb
. These files need to handle all the different conditions if the response needs to be different for different conditions. This will pollute the view file with some if clauses and sharing variables from intent. For example. Consider the following:It would be nice if a the
response
method on intent handlers can accept the response filename argument so that there can be multiple view files for conditions.In above example.
The text was updated successfully, but these errors were encountered: