How can we get additional headers passed to rasa server and store them in slot


I need to fetch a header value from request on rasa server and store the same value in a slot. How can it be done?


@ojas If you want to set a slot with a header’s value, you could use this endpoint and add this body to the request:

    "event": "slot",
    "name": "placeholder_for_slot_name", 
    "value": "placeholder_for_slot_value" # the datatype must match the type of the slot

Hope this helps!

1 Like

@anca Thanks for the solution.