Unable to parse the output from the webhook response to interface

I tried working with webhook and setting up some custom data in output. But it’s not working as expected.

This is dedicated webhook

This is interface inside instant trigger

Not getting as expected, in the output bundle.

How to resolve this? There was no error in the editor.

Hi, I can’t really imagine the scenario. Can you post a screenshot ? How do you ‘simulate’ the webhook output ? Apart from ‘Video’, output variables don’t match from json to bundle visual…

Yes. That’s what I am saying. Whatever I put in the dedicated webhook > communicationsection, it doesn’t show up in the output bundle/map with interface inside the module → instant trigger → interface

Welcome to the Make community!

Your webhook’s communication tab is incorrect, and does not follow the example in the documentation.

Try something like this:

{
    "response": {
        "output": {
          "video": "...",
          "dashboard_video_url": "...",
          "email": "...",
          "name": "...",
          "playback": "...",
          "submitted_at": "...",
        }
    }
}

Hope this helps! If you are still having trouble, please provide more details.

@samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

Thanks for sharing, @samliew. Let me try this out.

Webhook communication

{

  "respond": {

"body": {},

"type": "json",

"status": 200,

"headers": {

"content-type": "application/json"

    }

  },

"response": {

"output": {

"video": "{{body.data.video}}",

"dashboard_video_url": "{{join(['
', body.data.video.collection_id, 'asset', body.data.video.id], '/')}}",

"email": "{{body.data.email}}",

"name": "{{body.data.name}}",

"playback_time_instant": "{{formatNumber(body.data.playback_time_instant, 0)}}",

"submitted_at": "{{body.data.submitted_at}}",

"alert": 2

      }

  }

}

I updated this, but still not showing in the Output bundle.

The module interface that is consuming the response from this webhook

[

  {

"name": "email",

"type": "email",

"label": "Lead email"

  },

  {

"name": "name",

"type": "text",

"label": "Lead name"

  },

  {

"name": "playback_time_instant",

"type": "number",

"label": "Video duration when form is filled"

  },

  {

"name": "submitted_at",

"type": "timestamp",

"label": "Form filled at"

  },

  {

"name": "video",

"type": "collection",

"label": "Video",

"spec": [

      {

"name": "id",

"type": "text",

"label": "ID"

      },

      {

"name": "title",

"type": "text",

"label": "Title"

      },

      {

"name": "collection_id",

"type": "text",

"label": "Collection ID"

      },

      {

"name": "created_at",

"type": "timestamp",

"label": "created at"

      }

    ]

  },

  {

"name": "dashboard_video_url",

"type": "text",

"label": "Dashboard Video URL"

  }

]