Skip to content

How to reference user state in prompt #2198

Closed Answered by gmyrianthous
gmyrianthous asked this question in Q&A
Discussion options

You must be logged in to vote

Found the answer, sharing it here in case anyone is wondering.

You can retrieve it by referencing {user:first_name}.


Assuming you have nested structures within user: prefix, for instance: {'user_profile': {'name': 'Giorgos', 'age': '31'}}
You can retrieve the name using {user:user_profile:name}

Replies: 1 comment

Comment options

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