AI Zone Admin Forum Add your forum

CX Company, chatbot market leader in the Netherlands since 2005, will speak on the Amsterdam Chatbots Meetup on Wednesday, Oct 18!

Your Bot can “know” you…
 
 

...or rather your name, instead of referring to you (the User) as ‘Undefined’. I felt the need to change it as it seemed awkward during my conversations while testing or creating new scripts and I didn’t feel like having to input my name every time we chatted.

I’ve been using a local server based setup so there is no Internet worries.

Here’s what I came up with and it’s very easy to add.

Insert it into your bot’s begin.rive file and substitute your name instead of snookums, or whatever you wish. wink - have some fun.

It would be wise to Rename and Save your original Begin.rive file for safekeeping.

I tested it on Firefox and Chrome and both work fine. Be sure to clear out the cache if it doesn’t appear to work properly.

################################

! version = 2.0

  > begin
  + request
  - <set name=snookums>{ok}
  < begin

// The Botmaster’s Name

################################

 

 
  login or register to react