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"
}
]