Bot greeting with first name 👋

(Ryan McGuinness) #1

When using a bot, particularly for an informal activity such as shopping or ordering food, it would be unnatural conversation for a bot to address the user by their full name.

To have the bot refer to a user by their first name, you just need to insert a task in your flow ‘Text (String) with ‘Split Text’ as your option. Then choose this output in your welcome message.

Just select ‘user name’ using the ‘XO’ icon and use the separator as [space]. This will split the value of the full name into first name and last name.

When you message the user, Just use the ‘XO’ icon and select the first item from the Text (String) - Split Text heading (unless you renamed this step) . This will select ‘first name’ for you. :thumbsup:

1 Like
(Aly Dabbous) #2

I tried this as well and it didn’t work.

I want the bot to just say “Aly” instead of “aly dabbous”. Can you please tell me how this is done. Thanks.

(John Jackson) #3

Not sure why this method didn’t work, but you could try this instead:

(Aly Dabbous) #4

hey John,

I tried using your code but still doesn’t work. Actually it stops my flow.
My flow does not continue when I inserted your code. Please advise. Thanks.

Aly

(John Jackson) #5

Ah OK. What does the log say happened there?

(Aly Dabbous) #6

Hey John,

Thanks for your help and reply. I solved it! But now there is another
problem… My flow should be triggered when someone presses the “Get
Started” button on Facebook messenger. However, I tested it and every time
I delete my messages and press “Get Started”, again, nothing happens; The
bot gives the impression that it will reply and then nothing… I get no
replies.

Do you know what’s the solution to this?

Sorry for replying in an irrelevant thread. Didn’t know where else to reply
to you.

Thanks,

Aly Dabbous.