Sender_id returns as 'default'

Hello Team,

Im stuck with a problem here. I use the sender_id in my application to identify user and run couple of functions. However everytime I use tracker.sender_id or tracker.current_state()[‘sender_id’] I get back default as its response.

I have attached the image of tracker.current_state() and you can see the sender_id value is default.

Let me know how can I solve the bug? I do see this was fixed in 2.1.1 and 2.4.0 however both versions are giving me the same error.

Any help is appreciated!

Thank you

@shreehari What rasa version are you using? Can you share the format of requests you are sending ? also are you using a custom connector or the default rest webhook ?

Check the docs

Hi! :smiley: In you request… you can change sender_id to sender ?

{
"message":"user msg",
"sender":"sender id"
}

@itsjhonny Thanks for the reply man. Actually the problem was in the post request parameter.

{
 "user": "<sender_id>",
 "message": "<user message>"
}

The correct request should actually be,

{
 "sender": "<sender_id>",
 "message": "<user message>"
}