URGENT : How to get the first message from user of the new session in fulfillment

27 views
Skip to first unread message

priyaaru...@gmail.com

unread,
Oct 21, 2021, 8:01:54 AM10/21/21
to Dialogflow Essentials Edition users
Hi All,
     I have a requirement. If the user sends a unrecognized response as first message in a new session I need to give a welcome message. But if the user give unrecognized response at any other place of the session i need to give a different response. How can i achieve that? I'm using nodejs to code and i dont have any API's 

Note: all my other intents responses are defined in console itself. only for the fallback intent i have enabled fulfillment.

Expected response Example (Pizza ordering bot):-
User A - what is the temperature today?
Bot - I'm sorry. Welcome to pizza bot. I can help you with ordering pizza!
User A - i want to order pizza
Bot - Welcome to pizza bot. pls enter your name
User - what is the temperature today?
Bot - I'm sorry, Can you rephrase?
______________________________________________
User B - i want to order pizza
Bot - Welcome to pizza bot. pls enter your name
User B - what is the temperature today?
Bot - I'm sorry, Can you rephrase?
User B - John
Bot - Thanks John. Please enter your zipcode
User B - who are you?
Bot - I'm sorry, Can you rephrase?

Jun Lu

unread,
Oct 22, 2021, 12:51:04 PM10/22/21
to Dialogflow Essentials Edition users
Hey,

It looks that you're looking for solutions on open questions? 
Then it is worth to look into the following StackOverflow discussions at [1][2][3] for this, but please notice that Google Groups are reserved for general product discussion, so it is suggested to reach StackOverflow for technical questions 

contast...@gmail.com

unread,
Nov 6, 2021, 4:03:14 PM11/6/21
to Dialogflow Essentials Edition users

I recommend you to use contexts to solve this issue. Create the first callback with no messages and others with context.

priyaaru...@gmail.com

unread,
Nov 8, 2021, 5:27:58 AM11/8/21
to Dialogflow Essentials Edition users
Thanks. It helped.
Reply all
Reply to author
Forward
0 new messages