Hi there. Could you please help me understand how can I call an action from JavaScript code in Botpress Cloud? I defined a simple action and tried to call it like this:
const result = await client.callAction({
type: 'my_custom_action',
input: {
name: 'David'
}
});
The integrated linter doesn't comply about this syntaxis, but I'm getting this error:
Error calling action my_custom_action: Action "my_custom_action" not found for bot 72ee1570-971d-4533-ac76-514dbea5318c {"id":"err_20250409184202x3D65727C","code":400,"type":"InvalidDataFormat","message":"Action \"my_custom_action\" not found for bot 72ee1570-971d-4533-ac76-514dbea5318c"}
{"scope":"bot-action","cardId":"card:\"Test Bot for Custom Action Execution and Error Handling\"","nodeId":"node:Standard1","workflowId":"flow:Main"}
Thanks in advance!
https://cdn.discordapp.com/attachments/1121494527727902891/1359600351032115513/image.png?ex=67f811ff&is=67f6c07f&hm=90fac0e8620688b5e4777d193516c6dbb8aca065b16ba9535a8462ab06be17a6&