“refresh: true” command is not working properly

Hi,

According to documentation https://developer.kore.ai/docs/bots/bot-settings/bot-sessions/
command refresh: true ” should clear all information.

I tried in my bot portuguese version, but it not working.

Do you have ideas? Thanks!

@slopes
Can you please help us with how exactly are you sending the refresh:true?
For the mentioned documentation we agree that the explanation could have been clearer. We will have it updated. Based on how you are using refresh:true we maybe able to help you in the interim.

Hi,

According to documentation, the command is “refresh: true” and the expect behavior is:

  • Complete session information is cleared;
  • A new conversation session is created.

I tried to send pictures but its not allowed. Below I paste the debug log and conversation history:

"Quem pode reservar?

Wed Mar 23 2022 at 12:10:49 pm
A reserva de produtos pode ser feita por passageiros com voos internacionais marcados, com embarque ou desembarque previstos para os aeroportos internacionais de:

:round_pushpin:Belo Horizonte
:round_pushpin:Brasília
:round_pushpin:Campinas
:round_pushpin:Fortaleza
:round_pushpin:Natal
:round_pushpin:Recife
:round_pushpin:Rio de Janeiro
:round_pushpin:São Paulo
:round_pushpin: Florianópolis
:round_pushpin: Porto Alegre

Wed Mar 23 2022 at 12:10:50 pm
Sua intencao foi intenção-reserv

Wed Mar 23 2022 at 12:10:56 pm
refresh: true

Wed Mar 23 2022 at 12:10:57 pm
Desculpe não consegui entender. Pode refazer a sua pergunta?

Wed Mar 23 2022 at 12:10:58 pm
Sua intencao foi Fallback_Task
"

"
03-23-2022 12:10:44.305 info ON_CONNECT_EVENT identified using external event
03-23-2022 12:10:44.305 info Current conversation is cleared and new one is started based on external event
03-23-2022 12:10:44.305 info ON_CONNECT_EVENT identified using external event is initiated
03-23-2022 12:10:44.305 info Intent identified using external event is initiated
03-23-2022 12:10:44.305 info Welcome_Task
intent node initiated
03-23-2022 12:10:44.305 info Welcome_Task
intent node processing is completed
03-23-2022 12:10:44.305 info WelcomeMsg
message node initiated
03-23-2022 12:10:44.400 info WelcomeMsg
Bot response parsing
03-23-2022 12:10:44.462 info WelcomeMsg
Bot response parsing successful
03-23-2022 12:10:44.576 info WelcomeMsg
message node processing is completed
03-23-2022 12:10:44.576 info Welcome Task: Reached end of dialog
03-23-2022 12:10:49.577 info Knowledge Collection
03-23-2022 12:10:49.577 info FAQ ‘Quem pode reservar?’ is identified
03-23-2022 12:10:49.815 info End of conversation event is initiated
03-23-2022 12:10:49.815 info Tratarintencao
intent node initiated
03-23-2022 12:10:49.815 info Tratarintencao
intent node processing is completed
03-23-2022 12:10:49.815 info Script0005
script node initiated
03-23-2022 12:10:49.872 info Script0005
Script node execution
03-23-2022 12:10:49.892 info Script0005
Script node execution successful
03-23-2022 12:10:49.928 info Script0005
script node processing is completed
03-23-2022 12:10:49.928 info Transitioning from Script0005 to Message0013
03-23-2022 12:10:49.928 info Message0013
message node initiated
03-23-2022 12:10:50.006 info Message0013
Bot response parsing
03-23-2022 12:10:50.079 info Message0013
Bot response parsing successful
03-23-2022 12:10:50.532 info Message0013
message node processing is completed
03-23-2022 12:10:50.532 info Tratarintencao: Reached end of dialog
03-23-2022 12:10:57.754 info Fallback_Task
intent node initiated
03-23-2022 12:10:57.754 info Fallback_Task
intent node processing is completed
03-23-2022 12:10:57.754 info FallbackMsg
message node initiated
03-23-2022 12:10:57.829 info FallbackMsg
Bot response parsing
03-23-2022 12:10:57.909 info FallbackMsg
Bot response parsing successful
03-23-2022 12:10:58.113 info FallbackMsg
message node processing is completed
03-23-2022 12:10:58.113 info Fallback Task: Reached end of dialog
03-23-2022 12:10:58.113 info End of conversation event is initiated
03-23-2022 12:10:58.113 info Tratarintencao
intent node initiated
03-23-2022 12:10:58.113 info Tratarintencao
intent node processing is completed
03-23-2022 12:10:58.113 info Script0005
script node initiated
03-23-2022 12:10:58.195 info Script0005
Script node execution
03-23-2022 12:10:58.214 info Script0005
Script node execution successful
03-23-2022 12:10:58.244 info Script0005
script node processing is completed
03-23-2022 12:10:58.244 info Transitioning from Script0005 to Message0013
03-23-2022 12:10:58.244 info Message0013
message node initiated
03-23-2022 12:10:58.316 info Message0013
Bot response parsing
03-23-2022 12:10:58.400 info Message0013
Bot response parsing successful
03-23-2022 12:10:58.505 info Message0013
message node processing is completed
03-23-2022 12:10:58.505 info Tratarintencao: Reached end of dialog
"

Note that I’m using Portuguese as language.

@slopes
The documentation will need to be corrected.

refresh: true

is not supposed to be entered manually. This is a part of the meta of a payload that is sent to the bot. More examples should have been provided. I will try to get this fixed and share an example but it may take a while. As of now, if you manually enter any phrase/utterance - it should be “discard”/“discard all”.
This piece of documentation should be helpful for you. https://developer.kore.ai/docs/bots/bot-builder-tool/system-commands/ Look for a custom concept - ~bot_commands_override_discard