Creates a new frontend action for the application. Use this endpoint to define a client-side UI operation that agents can trigger during conversations.
Uniqueness: The trigger function must be unique per application.
Auto-generation: A tool object is automatically generated from the provided parameters, description, and trigger function.
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Display name of the frontend action
"Open Product Modal"
Description of what the frontend action does
"Opens a modal displaying product details for the specified product ID"
The function name that the frontend will execute (used as unique identifier)
"showProductModal"
Array of parameters for the frontend action
Icon URL for the frontend action
"https://example.com/icon.png"
Frontend action created successfully
"myapp_onUserClick"
"my-app-id"
"User Click Action"
"Triggered when a user clicks a button"
"onUserClick"
"https://example.com/icon.png"
1700000000000
1700000000000