dry-scarletD
Voiceflowβ€’12mo ago
dry-scarlet

Event triggering approach ?

Hi lovely people πŸ˜‰

I'm trying to do a test to trigger an Event, I have defined an event in the VF CMS.

I read the documentation https://docs.voiceflow.com/docs/using-the-events-cms , specifically the section A. Invoking Events via the API (it seems there are 2 ways to trigger a VF event, I would like to use the A's way through a VF rest api).

Just to test this, I have an step in my workflow that does a call to the VF API, and I passed there the even't information as stated in the documentation, I expected after the call my event is been triggered and the path tied to the event is executed, but nothing happened there:

In the image attached in the workflow, I expect on the "step 2" (The api call POST: https://general-runtime.voiceflow.com/state/user/
{user_id} ) passing in the body :

{
  "action": {
     "type": "event",
     "payload":{
       "event": {
         "name": "NameOfMyEvent"
        }
      }
  }
}


The api call is successful, it return an empty array with 201 http status code, but the path with my event "Step 3 in the attached image" has never initiated.

Am I missing something ??

Thanks in advance!
image.png
Was this page helpful?