Module: Google::Cloud::Dialogflow::V2::Intent::Message::Platform
- Defined in:
- lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb
Overview
Represents different platforms that a rich message can be intended for.
Constant Summary collapse
- PLATFORM_UNSPECIFIED =
Not specified.
0
- FACEBOOK =
Facebook.
1
- SLACK =
Slack.
2
- TELEGRAM =
Telegram.
3
- KIK =
Kik.
4
- SKYPE =
Skype.
5
- LINE =
Line.
6
- VIBER =
Viber.
7
- ACTIONS_ON_GOOGLE =
Actions on Google. When using Actions on Google, you can choose one of the specific Intent.Message types that mention support for Actions on Google, or you can use the advanced Intent.Message.payload field. The payload field provides access to AoG features not available in the specific message types. If using the Intent.Message.payload field, it should have a structure similar to the JSON message shown here. For more information, see Actions on Google Webhook Format
{ "expectUserResponse": true, "isSsml": false, "noInputPrompts": [], "richResponse": { "items": [ { "simpleResponse": { "displayText": "hi", "textToSpeech": "hello" } } ], "suggestions": [ { "title": "Say this" }, { "title": "or this" } ] }, "systemIntent": { "data": { "@type": "type.googleapis.com/google.actions.v2.OptionValueSpec", "listSelect": { "items": [ { "optionInfo": { "key": "key1", "synonyms": [ "key one" ] }, "title": "must not be empty, but unique" }, { "optionInfo": { "key": "key2", "synonyms": [ "key two" ] }, "title": "must not be empty, but unique" } ] } }, "intent": "actions.intent.OPTION" } }
8