Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing documentation for message types #263

Open
sibbsnb opened this issue Jun 26, 2020 · 1 comment
Open

Missing documentation for message types #263

sibbsnb opened this issue Jun 26, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@sibbsnb
Copy link

sibbsnb commented Jun 26, 2020

I am not able to find any documentation for message types like Carousels?

@MatthieuJnon MatthieuJnon self-assigned this Jun 29, 2020
@santteegt
Copy link

Here's a working example using the Carousel component

utter_suggest:
  - custom:
    attachment:
      type: "template"
      payload:
        template_type: "generic"
        elements:
        - default_action:
            type: "carousel_item" # web_url
            url: ""
            payload: ""
            title: ""
          image_url: "https://www.aupairconecta.com/sites/default/files/v211batch11-aum-546-questionmark_2.jpg"
          title: Preguntas Frecuentes
          subtitle: Información de procesos de la U
          buttons:
            - title: Conexión a la red WiFi
              payload: /connect_wifi
              type: "postback" # web_url
              url: ""
            - title: ¿Cómo crear un usuario?
              payload: /create_user
              type: "postback" # web_url
              url: ""
        - default_action:
            type: "carousel_item" # web_url
            url: ""
            payload: ""
            title: ""
          image_url: "https://www.infochannel.info/sites/default/files/2019/04/02/help_desk_app.jpg"
          title: Mesa de Servicios DTIC
          subtitle: Ayuda con servicios informáticos
          buttons:
            - title: Reportar una incidencia
              payload: /open_incident
              type: "postback" # web_url
              url: ""
            - title: Estado de mi incidencia
              payload: /get_incident_status
              type: "postback" # web_url
              url: ""
            - title: No recuerdo la contraseña
              payload: /password_reset
              type: "postback" # web_url
              url: ""
            - title: Problem con correo electrónico
              payload: /problem_email
              type: "postback" # web_url
              url: ""
        - default_action:
            type: "carousel_item" # web_url
            url: ""
            payload: ""
            title: ""
          image_url: "https://www.universidades.com.ec/logos/original/logo-universidad-de-cuenca.png"
          title: Procesos Internos
          subtitle: Uso exclusivo para el personal
          buttons:
            - title: Reporte Biométrico
              payload: /request_biometrics_report
              type: "postback" # web_url
              url: ""
            - title: Solicitud de máquina virtual
              payload: /request_vm
              type: "postback" # web_url
              url: ""
    channel: socketio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants