samtecspg / articulate

A platform for building conversational interfaces with intelligent agents (chatbots)
http://spg.ai/projects/articulate/
Apache License 2.0
599 stars 159 forks source link

Welcome Message #976

Closed rounakraj closed 4 years ago

rounakraj commented 4 years ago

@wrathagom I would like to set a welcome message when chatbot starts. Is there something like Welcome Intent which i can use, or any other way to achieve this.

wrathagom commented 4 years ago

There is in the chat widget, but no where else I don't believe.

@dcalvom

dcalvom commented 4 years ago

Correct! This is a good feature to be added. A welcome message that will be used in case the channel accepts it.

rounakraj commented 4 years ago

Thanks, How do we modify this for chat widget.

rounakraj commented 4 years ago

@wrathagom How do we pass any parameter from chat widget and access it as part of CSO. For eg. i completed login and would like to send the userID back in CSO to be sent in header to my webhook. Is this possible?

rounakraj commented 4 years ago

@wrathagom @dcalvom any answer to my above queries

dcalvom commented 4 years ago

Hi @rounakraj, to let you know, right now @dakavisa is working on the welcome message feature. Regarding the way to send back something to your agent in the payload, you can just simply add it as a part of the payload in your request to converse and it will be forwarded to the CSO, so if you send userID in the payload you will be able to access it your action webhook with just {{userID}}

rounakraj commented 4 years ago

@dcalvom Thanks I could retrieve the payload. Would love to tryout the new welcome message feature once ready.

wrathagom commented 4 years ago

@dakavisa can you give a run down of welcome message feature?

dakavisa commented 4 years ago

Now we have a default action like fallback but it's called welcome action. This action is created automatically on any new agent, for the old ones it should be added before save.

image

For every connection, for example the chat widget, in the details tab, there is an option for enabling it:

image

For the chat widget, for every new session or when they are restarted, the action is executed when the chat is opened For all the other connections, the welcome action is executed after the first user message.

image

dakavisa commented 4 years ago

Closed by ef084a9c9a52c429e5330661c1a9d643fe6f2b7c