How to show a greeting message when BOT starts api.ai / dialogflow in App - bots

I am creating a BOT in Dialogflow on Android.
I want to show a greeting message every time user launches the app.
How to achieve this ?

You just need to mention in the default welcome intent or add an event for that particular intent. If you're using Dialogflow with kommunicate then to show different welcome messages on different pages of your website. Please refer to this doc for info.

You can create a welcome event and when user first time opens the chatbot you have to send just event name in parameter there is no need for the query parameter.

There is provision to do so in api.ai. The event is a feature that allows you to invoke intents by an event name instead of a user query. You just need to define event names for intents. Then, you can trigger these intents by sending a /query request containing an event parameter. Please read the document here: https://dialogflow.com/docs/events

Related

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

How to encounter reply when user attaches a document/image to a chatbot(Build with dialogflow and kommunicate)?

I have tried many different methods but it is not working properly.Please any one can help me how to send a reply when user uploads any attachments in a chatbot.
To be able to achieve your objective, it is important to understand what dialogflow events are: Events allow you to invoke intents based on something that has happened instead of what a user communicates. Dialogflow supports events from several platforms (like Google Assistant, Slack, and more) based on actions users take on those platforms.
When a user attaches a file or shares location, Kommunicate sends a custom event KOMMUNICATE_MEDIA_EVENT to your bot along with the attached file information. To have an upload intent respond to the KOMMUNICATE_MEDIA_EVENT, follow these steps to create this custom event in your dialogflow bot:
How to add an event to an intent
Go to the Events section of the intent.
Type the name of the event you'd like your intent to respond to (KOMMUNICATE_MEDIA_EVENT).
Press enter.
Click SAVE.
Also remember to add your response that the bot will deliver to a user when they upload a document.
References:
https://cloud.google.com/dialogflow/docs/events-overview
https://docs.kommunicate.io/docs/bot-custom-integration#send-attachments-to-bot
https://cloud.google.com/dialogflow/docs/quick/build-agent
I hope this helps?

Dialogflow messenger-referrals

I'm trying to get the GET_STARTED payload with reference parameters firing to my chatbot running on a node express.js instance.
If I do a get started with refereral call with no active conversation thread, I can access the parameters no problem.
The issue is, however, if I click on a referral link with a conversation thread with my bot already open. I get no post to my fulfillment server.
I have enabled messaging_referrals within the facebook developer console, is there some Intent or Event I need to create within the dialogflow console to pass it to my webhook?
For Context:
Messenger ref parameter is not passed to dialogflow
https://productforums.google.com/forum/#!msg/dialogflow/oldK752j-Ok/GrwJajfwBAAJ
https://developers.facebook.com/docs/messenger-platform/reference/webhook-events/messaging_referrals#customer-chat
https://developers.facebook.com/docs/messenger-platform/discovery/m-me-links/
In case anyone stumbles upon this in the future, I received a reply from DialogFlow support, stating that they don't support this functionality.

Can I show the quick replies everytime the user opens his messenger chat?

I want to show the quick replies in messenger bot every time they open the conversation. Is it possible?
I think you can invoke an event to get your task done. event are used to invoke intents by an event name instead of a user query. you can define the event name in the intent and call to trigger that event from your back-end implementation. please check this for more information.
https://dialogflow.com/docs/events
also if you are creating a custom UI(won't work in your case) for the chat basically you can hard code whatever the reply you want as the first message. then it will appear always when the user open the conversation.

API.AI A bot that starts the conversation

I am just now creating my first bot for my own use, and I want
to gather user information and search through my database for it.
I figured the best way for this is just to ask the question before the user
starts the conversation. Does anyone know how I can accomplish this (getting the bot to send a message first)?
Trigger an event as soon as user comes to the chat bot platform - see https://api.ai/docs/events. Nearly all platforms triggers an event for users first time. Check the facebook bot docs.
There is provision to do so in api.ai. The event is a feature that allows you to invoke intents by an event name instead of a user query. You just need to define event names for intents. Then, you can trigger these intents by sending a /query request containing an event parameter.

Resources