Agent functions
An agent function is a short piece of JavaScript that your AI agent runs when it needs custom logic: looking up a record, calling one of your systems, or preparing data before the agent replies. From its code, an agent function can work with your tables, call the APIs configured for your agent, read and update global variables, and, on runtime 2026.10.19, send messages to the user while it works.