Sprinklr AI+ Code Assistant
Updated
The Code Assistant is an integrated support tool within the Custom Code Editor, designed to simplify the process of writing Groovy scripts. It offers three core capabilities: Summarize, Generate Code, and Debug Code to help users write accurate and efficient scripts with minimal effort. This feature is especially beneficial for users such as ICs or workflow configurators who may not have in-depth information about Groovy syntax or scripting principles, enabling them to work confidently and effectively.
Notes:
The Code Assistant feature is only available to partners who have purchased Sprinklr AI+. It is not enabled by default and requires an active AI+ subscription to access its capabilities.
To enable Code Assistant on the UI for all Process Engine modules at once, since Update Properties is a common node, use GPT_ACTIONS_ENABLED_PRODUCTS (append the value SERVICES).
If Disable Generative AI Features toggle is enabled, the Sprinklr AI+ Code Assistant will not be available for you.
Before You Begin
You can access the Code Assistant directly within the Custom Code Editor. For step-by-step instructions on how to open the Custom Code Editor, please refer to this article - Custom Code Editor.
Key Functionalities of Code Assistant
Summarize: Breaks down the existing code line by line and presents a clear, human-readable explanation on the right panel. This is especially helpful for non-developers or users who want to quickly understand what a script does without needing deep technical knowledge.

Generate Code: Users can enter a natural language prompt (e.g., "Write a code to split a string by punctuation") and the assistant will generate the corresponding Groovy script. Optional sample responses can be added to enhance accuracy. Once generated, the code can be directly transferred into the editor without manual copy-pasting using the Insert button.




Debug Code: When a script fails or has syntax issues, users can use the Debug option to describe the problem. The assistant analyzes the faulty code, provides an explanation of what went wrong, and returns the corrected version of the script for easy insertion into the code editor using the Insert button.

