Skip to main content

Simple Function

The Simple Function Skill is a JavaScript function the Assistant can use to answer questions or perform tasks.

The Simple Function Skill editor with Name, Script, and Assistant Parameters
The Simple Function Skill.
  • Name: A name and optional description for the Assistant to reference.
  • Script: The JavaScript for the function. For example, a function that counts the letters in a string:
const str = $params.str;
const letterCount = str.replace(/[^a-zA-Z]/g, '').length;
return letterCount;
  • Assistant Parameters: A parameter configuration for any $params.* in the script. Click Generate Parameters to create them automatically, then review them.
Also available through the REST API
Everything on this page is built on Informer's public REST API, the same one the product uses, so your scripts and integrations can do it too. Developer reference: Assistant API.