Rich messages

In the Response section, you can add tabs for some of our supported integrations. This allows you to define default or integration-specific responses. In each tab, you can add up to 10 of the same or different message types. The DEFAULT tab and the integration tabs offer different message types. The integration tabs allow you to add images, cards, and quick replies.

To add integration tabs, either enable the respective integrations on the Integrations page or click on the + sign next to the DEFAULT tab. To add message elements, click the ADD MESSAGE CONTENT button.

Your agent's response can consist of up to 10 sequential messages that you can reorder in the UI.

Types of responses

Text

Text responses are available in all platforms. Your agent can send up to 10 sequential text messages in response to a user input (assuming no other message types are defined in the intent).

To add a new line in the UI, press Shift+Enter.

  • Facebook Messenger
  • Hangouts Chat
  • Kik
  • LINE
  • Skype
  • Slack
  • Telegram
  • Viber

You can reference parameter values as described here.

Image

The image message type lets your agent send images in integrations for Facebook Messenger, Kik, LINE, Skype, Slack, Telegram, and Viber.

All you need to do is to store the image and provide the public URL in the response for the agent.

  • Facebook Messenger: jpg, png and gif (animated gifs are supported)
  • Hangouts Chat
  • Kik: jpg, 1 MB max size (to send animated gifs, use video format in Custom payload)
  • LINE: jpeg, 1 MB max size, 240 x 240 max dimensions
  • Skype: 20 MB max size
  • Slack: gif, jpeg, png, and bmp
  • Telegram: 5 MB max size
  • Viber: jpeg, 1 MB max size

Card

Cards consist of an image, a card title, a card subtitle, and interactive buttons (for sending user queries or opening links). These elements can be combined depending on the platform's requirements:

Quick replies

Quick replies are displayed in messengers as clickable buttons with pre-defined user responses. When clicked, the button text is sent to the agent as a user query.

The following sections explain how to set up Quick Replies on each platform.

Requirements/Limitations:

  • One Quick reply element per intent.
  • Maximum of 10 replies.
  • 20 character limit per reply.

Custom payload

You can send custom payloads in the JSON format provided in the platforms documentation.

To send a custom payload to Facebook Messenger, Kik, Slack, and Telegram one-click integrations, use the following format:

{
  "facebook": {
  },
  "hangouts": {
  },
  "kik": {
  },
  "line": {
  },
  "skype": {
  },
  "slack": {
  },
  "telegram": {
  }
  "viber": {
  }
}

You can also send a custom payload to self-developed integrations. It won't be processed by Dialogflow, so you'll need to handle it in your own business logic.

See the integration's developer docs for more information:

이 페이지가 도움이 되었나요? 평가를 부탁드립니다.

다음에 대한 의견 보내기...

Dialogflow Documentation
도움이 필요하시나요? 지원 페이지를 방문하세요.