Skip to main content

Building with AI Tools

Accelerate Facilio Script development using AI coding assistants. We provide machine-readable documentation that gives AI tools complete context about the Facilio scripting language.

LLMs.txt#

We publish a comprehensive documentation file designed for AI consumption:

FileURLDescription
llms-full.txtfacilio.com/developers/docs/script-reference/llms-full.txtComplete scripting reference with syntax, functions, and code patterns — use this URL directly with any AI tool
llms.txtfacilio.com/developers/docs/script-reference/llms.txtCurated index with links, following the llmstxt.org standard

ChatGPT#

Paste the URL directly into your prompt — ChatGPT will fetch and read the content:

Read https://facilio.com/developers/docs/script-reference/llms-full.txt
Now write a Facilio Script that:- Fetches all open work orders assigned to the current user- Groups them by priority- Sends an email summary with the count per priority

You can also create a Custom GPT and add the URL to its configuration so every conversation has scripting context built in.

Claude#

Use the URL with Claude's web fetch capability or paste it at the start of a Project:

Fetch https://facilio.com/developers/docs/script-reference/llms-full.txtand use it as context for our conversation.
Write a Facilio Script that fetches all assets where the lastmaintenance date is older than 90 days, then creates a work orderfor each one with category set to "Preventive Maintenance".

For repeated use, create a Claude Project and add the URL as a knowledge source. All conversations in that project will have scripting context available.

Lovable#

When starting a new project in Lovable, provide the URL and constraints:

Read https://facilio.com/developers/docs/script-reference/llms-full.txt
Write a Facilio Script that calculates the average energy consumptionper building for the last 30 days using reading functions, and sendsa notification if any building exceeds the threshold of 500 kWh.

Cursor / VS Code#

Reference the documentation URL directly in your prompt:

@url https://facilio.com/developers/docs/script-reference/llms-full.txt
Write a Facilio Script that listens for new work order creation,checks if the priority is "urgent", and sends a push notificationto the assigned team.

Or download llms-full.txt into your project root — Cursor will automatically include it as context.

Tips for better results#

  1. Always include the URLhttps://facilio.com/developers/docs/script-reference/llms-full.txt
  2. Specify the use case — "Write a scheduled script" is better than "Write a script"
  3. Name the module and fields — "Fetch from the 'workorder' module, filter by 'priority'" gives precise output
  4. Mention Facilio Script — Telling the AI ensures it uses Facilio-specific syntax, not generic JavaScript or Python
  5. Reference function categories — "Use module functions to fetch and reading functions to get sensor data" helps the AI pick the right Facilio Script methods