AI Zone Admin Forum Add your forum

CHATBOT MEETUP CHATBOT MEETUP CHATBOT MEETUP CHATBOT CHATBOT MEETUP CHATBOT MEETUP CHATBOT MEETUP CHATBOT MEETUP

On June 28th, 2017 we're organizing our next Chatbot Meetup in Amsterdam, The Netherlands. Feel free to join!'

Send multiple messages without user input
 
 

I’m using CS and my oobs are interacting with FB Messenger.

Do you know of a way to send multiple messages without getting user input? For instance, when the bot goes into a new conversation, it says ‘Hello’ then waits 2 seconds then says, “What’s up?”

Right now I have:

t: Hello.^gambit(~)

t: What’s up?

The bot responds > Hello. What’s up?

But I want it to look like:

>Hello.
>What’s up?


Thanks!

 

 
  [ # 1 ]

Hi Kelly

if I well understood you want to
separate CS output lines
and send separated messages to Messenger.

A possible way:

tHello.\n
   
^gambit(~)

tWhat’s up?\n 

1. Use a separator char ( “\n”) to catch CS outputs,
2. afterward split(’\n’) and send to Messenger separate texts.

About timing:
CS volleys are “syncronous”: each user message request to CS is replyied as soon as possible and connection closed.

So you have to manage any timing logic (e.g. sleep(2) every message sent back to user) in your middleware (your Messenger client)


FB Messenger Server <—- you MS-client + CS-client—-> CS Server

 

 

 

 
  [ # 2 ]

Well I was also just wondering if there was a purely CS way to achieve that response.

Thanks smile

 

 
  login or register to react