diff --git a/docs/docs/Components/python-interpreter.mdx b/docs/docs/Components/python-interpreter.mdx index 3cfb5dded0..48d042960a 100644 --- a/docs/docs/Components/python-interpreter.mdx +++ b/docs/docs/Components/python-interpreter.mdx @@ -77,6 +77,159 @@ Output: If you don't include the package imports in the chat, the agent can still create the table using `pd.DataFrame`, because the `pandas` package is imported globally by the **Python Interpreter** component in the **Global Imports** field. +## Pass inputs to the Python Interpreter + +To pass inputs to the **Python Interpreter** component, you need to customize the component's code to add input fields. +After the input field is added to the component code, the port becomes available for connections. +For example, to connect a [**Text** component](/text-input-and-output) and pass a URL value to the **Python Interpreter** component, do the following: + +1. Add a **Python Interpreter** component to your flow. +2. To modify the **Python Interpreter** component's code, click