typebot.io
typebot.io copied to clipboard
HTTP request, save in variables
I'm using the HTTP Request Integration to run a Job Template in AWX. With the ID of the Job a started I'll do the 2nd request to get the result.
URL: http://awx.domain.net/api/v2/jobs/{{awx_job_id}}/ When I press the button "Test the request" I receive valid data, which looks like this stripped down snippet:
"statusCode": 200,
"data": {
"id": 487,
"type": "job",
"url": "/api/v2/jobs/487/",
"created": "2024-06-12T10:08:00.069585Z",
"modified": "2024-06-12T10:08:00.513772Z",
"job_type": "run",
"project": 27,
"status": "successful",
"failed": false,
"started": "2024-06-12T10:08:00.710642Z",
"finished": "2024-06-12T10:08:11.602719Z"
},
"job_template": 59,
"webhook_guid": "",
"host_status_counts": {
"ok": 1
},
"custom_virtualenv": null
}
}
While im Testing the complete flow, the request is still working, but typebot seems to have an issue to safe the Response in the variables. My Check for printing these variables is here:
data.status: running (should be successful)
data.id 487
data.failed: false
data.started: 2024-06-12T10:08:00.710642Z
data.finished: (should be a timestamp like above)
Thanks you for helping me out.