Get Slot Data in script for webmessaging

Hi, in view of some other topics and replies ("Passing slot Data" and "Bring Lex details in PureCloud script"), I have some trouble in getting the slot 'answers' in a script for messages.
I have a digital bot flow asking for several slots. Slot can either be a selection from a dynamic list or a regular expression. (Basicly asking for which division you are working, department, name, etc.).
There are no intents configured.
In what way am I able to pass these 'answers' to a script for messaging.
Tried to pass the 'Slot Result' value via a 'screen pop' through the Inbound Message Flow, but that doesn't work.
Slot result value is 'Slot.Division' , but when I add the 'Slot.Division' in the input for the Screen pop, it will not accept this.
Am I missing a step?

Hi,
Edit the "Slot.Division" variable in the Bot Flow and make sure Output from flow is ticked.

image

Then in the Message flow under "Call Digital Bot Flow" action, map the Output for "Slot.Division" to a new variable say "State.Division" - similar example below for Slot.Name mapping

image

Pass the State.Division to your script as Input.

The respective Script variable for "Division" should have "Input" option enabled.

Cheers
Zubair

Thank you Zubair,
Don't know how, but I completely missed the 'outputs' on the Call Digital Bot Flow.
Rolph