Is there a way to show video in Dialogflow Messenger - dialogflow-es

I'm working on a Dialogflow Messenger integration and Im trying to see if there is any way of showing a You Tube video as one of the responses. As far as I can see there are no Rich Response Messages which support video.
The only way which springs to mind is to listen for df-response-received events and then add the embed code on the fly which seems hideous.
Does anyone have any idea how to achieve this?

I basically answered my own question here. I actually needed other UI elements so I built my own chat interface in React as a web component using direflow.io then I had full control over my UI :)
Any new components I want to display I can send as a custom payload as normal

Related

Dialogflow Hangout Integration with Card Response

I am using Dialogflow and fullfilment for dynamic response and integration has been done with Hangout. Text response is working fine. But when i use rich media like CARDS (Hangout API), It is not working. Can you please let me know what was i am missing or how to use cards for hangouts using dialogflow-fullfilment agent?
Stack Driver Log Image
Thanks and Regards,
Ramchandra-Sah GANESH
I wrote a blog about this, since I've figured some small quirks.
The best is to test this first within the Dialogflow UI console, by choosing custom payloads for Hangouts.
Note:
The first key can't be called cards, but it has to be named to hangouts
This hangouts key points to an object, not an array (of cards)
Have a look into this blog to get further details. (For example on using this with webhook code) How to build chatbots for Hangouts with Dialogflow by using custom payloads and cards.

Triggering next intent without user input in Dialogflow

I'm building my first chatbot using Dialogflow. During my chat sessions, I would like to move on from one intent to another, without having user input in between. This can be seen in this image on Imgur.
The layout of the chat so far can be seen here.
I'm supposed to move from showing the video or article directly to "allright has your car..." without any user input, but I don't seem to be able to. How do I solve this?
I've tried using in and output contexts, but that didn't seem to work.
Thanks in advance!
Events can be triggered through Dialogflow fulfillment or the
detect intent API. These events can be handled in your Dialogflow agent or in fulfillment.
Check documentation here: Dialogflow Events
This means you will need to programmatically do this

Add image as a response in web demo (DialogFlow)

I just want to know if its possible to add images as a response into chatbot web demo. If is not supported, how can I do this? How else can I do it?
As per my knowledge it is not at possible in web demo, you can add images hyperlinks or buttons in your website try exploring custom payload option, where on your website you will have to code by yourself, for the buttons when you send responses as custom payload and divert it to google assistant.
Web demo does not support images or buttons.
You can add some other chat client which supports images, like facebook messenger, slack etc.

How to create a chatbot with facebook messenger like templates

I'm trying to create a chatbot for use in a chat app I've created. I basically need the chatbot to send me replies that have message templates like in facebook messenger. For example, If I type in "what's the weather like", I want my chatbot's reply to look like facebook's media template, linked here: Media Template
Does anyone have any tutorials or links I can follow?
Thank you in advance.
Cheers!
Usavaully work flow of chat application as follows,
Message providers(Facebook, twitter,slack etc..) receives messages from user
Message is sent to the configured endpoint(your webserver) according to the settings provided in the face book developer page reference
In the webserver you classify the intent prepares the response according to the request and sends the responses back.
So in the 3rd point web server you give responses based on the platform you are responding to reference, since in your case it's your own platform you need to design your own UI based on the response format or you can use some predefined html templates.
I hope answer gave some direction to work on.

Rich text format for response text in facebook chatbot

I want to format(change font size/text color/apply text style - bold/underline/italic etc) the response text send to user in Facebook chatbot.
I do not see any such support in the messenger API. Just wanted to confirm if its supported or not? Is there any other way/approach to achieve this?
Thanks in advance,
picku
You can accomplish something similar to what you want using the web view API: https://developers.facebook.com/docs/messenger-platform/messenger-extension
This allows you to display an HTML page without leaving the chat. If your responses are dynamic you could generate the pages at runtime and link to them using the API.

Resources