Skip to main content
1

Create a Python file

Create a file named access_session_state_in_custom_python_function_step.py
2

Add code to file

access_session_state_in_custom_python_function_step.py
3

Set up your virtual environment

4

Install dependencies

5

Export your OpenAI API key

Set OpenAI Key

Set your OPENAI_API_KEY as an environment variable. You can get one from OpenAI.
6

Run Workflow