Skip to main content

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

  1. Open Setup from the left side panel
  2. Navigate to Functions
  3. Open any function in the script editor
  4. Look for the AI button in the editor header
  5. Click it to open the Script Assistant panel

Available on Web only


How to Use It

  1. Navigate to Setup → Functions and open the script editor
  2. Click the AI button at the top of the function editor header — the Script Assistant panel opens on the right
  3. 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
  4. Press Enter or click Send — the assistant generates the code in the side panel
  5. Review the generated code
  6. Select and copy the code from the side panel
  7. 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.

  1. Navigate to Setup → Functions and open the script editor
  2. 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"
  3. The assistant generates the script in Facilio's scripting language
  4. The admin reviews the code, copies it from the panel, and pastes it into the main editor
  5. 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 DesignGenerated 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 OnlyThe assistant generates code in Facilio's internal framework; it is not compatible with external frameworks or programming languages.
Prompt Precision MattersVague 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 DeployingReview generated code for correct object and field references before saving and activating.
Web OnlyScript Assistant is not available on mobile.