Script Assistant — User Guide
Last Updated: April 2026 | Version 1.0
Overview
Script Assistant generates scripts in Facilio's internal scripting language based on natural language prompts. Users describe the required functionality in a chat panel and the assistant returns generated code in a side panel. Code is reviewed and manually copied into the function editor before deployment.
Who It's For
Developers and Implementers Creating and modifying custom functions without writing scripting syntax from scratch
Technical Admins Setting up backend-level script functions as part of platform configuration
Where to Find It
- Open Setup from the left side panel
- Navigate to Functions
- Open any function in the script editor
- Look for the AI button in the editor header
- Click it to open the Script Assistant panel
Available on Web only
How to Use It
- Navigate to Setup → Functions and open the script editor
- Click the AI button at the top of the function editor header — the Script Assistant panel opens on the right
- Type a natural language description of what the script should do
- Include the Facilio platform objects involved (e.g., Service Request, Work Order, Asset) and the specific outcome you need
- The more precise your prompt, the more accurate the generated code — reference exact field names and object names where possible
- Press Enter or click Send — the assistant generates the code in the side panel
- Review the generated code
- Select and copy the code from the side panel
- Paste it into the main script editor where the function needs to be added
To revise the code, type a follow-up prompt describing the change — the assistant rewrites based on the updated instruction.
Real-World Example
A Technical Admin needs a script that automatically updates a Service Request status when the Priority field changes.
- Navigate to Setup → Functions and open the script editor
- Click the AI button and type: "Create a method that updates the Service Request status to 'In Progress' when the Priority field is set to High"
- The assistant generates the script in Facilio's scripting language
- The admin reviews the code, copies it from the panel, and pastes it into the main editor
- The script is saved and tested
Outcome: A working script method is ready for assignment to the relevant event or automation trigger.
Limitations & Considerations
| Manual Copy-Paste Is By Design | Generated scripts do not save or deploy automatically. Code is copied from the side panel and pasted into the editor, giving a chance to review before anything runs. |
| Facilio Scripting Framework Only | The assistant generates code in Facilio's internal framework; it is not compatible with external frameworks or programming languages. |
| Prompt Precision Matters | Vague prompts or references to undefined objects may produce non-functional code; include exact platform object names, field names, and the outcome you need. |
| Always Validate Before Deploying | Review generated code for correct object and field references before saving and activating. |
| Web Only | Script Assistant is not available on mobile. |