Personalization with First Name using DialogFlow with Flow Xo

(JI) #1

My Messenger bot is set up to use DialogFlow with Flow Xo, which so far is working pretty well but something apparently pretty basic is beating me. When user says “Hi”, my bot responds with “Hello $first-name, how may I help?” Somehow, instead of returning the actual “First Name” from Messenger, my bot returns the placeholder “$first-name”. I see the First Name metadata; and even stored it in attributes. But I just can’t get it to display in the chat. I guess as a weaker solution, I could simply serve this greeting from Flow Xo, but I was hoping that DialogFlow–Flow Xo interface will give me a better ability at matching natural language queries and providing my users a more natural conversational experience.

Any ideas?

(Daniel Beckett) #2

Hi @jerryiversen

You can pass data from Flow XO into Dialogflow so should be able to send over the user’s name. As far as setting that value and using it from Dialogflow you’d be best off checking their API docs.