Using the Swimlane Python Chatbot
When configuring a Script native action, youβll notice an icon in the lower-right corner of your browser window. Selecting the Script native action makes the Swimlane Hero AI Python Chatbot available to assist you with Python scripting.
Think of it as your Python scripting assistant. It can help you generate Python code for transformation logic, filtering, extraction, or any other function you need within the Script action.

Getting Started with the Python Chatbot
Click the chatbot icon to open a new chat. The first time you ask a question, the chatbot will prompt you to acknowledge that your organization has accepted the Swimlane Terms and Conditions. You can click Swimlane Terms and Conditions to review them. Once you click Acknowledge, the chatbot will be ready to assist you.
Now you can begin formulating Python scripts!
Capabilities of the Python Chatbot
The goal of the Swimlane Python Chatbot is to help you craft Python scripts that operate on JSON objects from the Script action inputs. The chatbot can generate fully interoperable Python scripts that align with the conventions used in Swimlane. It will also help you refine your script as needed.
Example Scenario: Python Chatbot Query
In this example, Amir wants to generate Python code to filter, extract, or transform an input JSON object.
As you can see, the chatbot is interactive and allows Amir to refine his script as he progresses.



