Skip to content
Discussion options

You must be logged in to vote

Hi.
You can simply access it via $flow.state.STATEVARIABLE
So here I have create a state variable for my flow:

I can simple access it the following in my JS code:
const jwtToken = $flow.state.jwtTOKEN;

When using it in a tool, is is probably good practise to add it to the input schema, so the Agent gives you feedback when something is missing:

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Shahaf-committed
Comment options

Answer selected by HenryHengZJ
Comment options

You must be logged in to vote
1 reply
@Shahaf-committed
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants