AI Agent Service
The aiagent active variable service gives your scripts access to your Fusion AI agents. It uses the AI Agent REST service, so the same rules and permissions apply.
Using the service
// Read an item
item = ${aiagent:"morning-gas-check"}
// Find items
items = find ${aiagent}
// Save an item
save ${aiagent:item}
// Delete an item, or roll back to its previous version
delete ${aiagent:"morning-gas-check"}
See AI Agent for the variable this service holds.