v1
latestOpenAPI 3.1.02026-07-135055368.9 KBActions
Create a New Action
Create a New Action
post/v1/actions
Request body
Example request
{
"name": "get_delivery_date",
"description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'",
"endpoint": {
"url": "http://example.com/api/action",
"method": "POST"
},
"userWaitingText": "Please wait while we get the delivery date for your order",
"userSuccessText": "We have sent you an email with the delivery date",
"userErrorText": "We are unable to get the delivery date for your order"
}Response
Action created successfully