Handling actions from Neuro
Action commands from Neuro, whether forced or voluntary, have the following structure:
{ "command": "action", "data": { "id": string, "name": string, "data"?: string }}data Parameters
Section titled “data Parameters”id- a string that identifies this specific execution. You’ll need to use this ID when returning an action result.name- the name of the action Neuro wants to execute. During action forces, this will influence whether or not Neuro retries the entire action force.data- If the action has a schema attached, this field contains the data to fulfill the schema.
More info about handling actions
Section titled “More info about handling actions”- You should be able to handle an action being sent the moment you unregister that action.
- Neuro will be waiting for the action result before sending another action. For that reason, action results should be about validation, not actual results. See more at the action result page