How to access your Quriobot response data to send it to an external endpoint
Quriobot can send response data either to its backend for reporting, or it can abstract from managing response data completely and only call a javascript function with the results for further processing.
Note: if you use the custom `onSave` function, then Quriobot response data will NOT be sent to Quriobot servers and thus will not be visible in the results and reporting, also none of the response connections and notifications will be executed.
Using the Advanced initialization options, you can set up your own onSave() function which will be called with the response data:

Snippet:
{
onSave: function(results) {
console.log("my results", results)
}
}
Tags
See also
- How to use external data (from Google Sheets) in your bot chat-texts and responses
- Quriobot, the technical details
- Can I execute JavaScript function as a bot step or response?
- Can I use JavaScript function result in the bot messages or responses?
- Exporting your results
- How to populate the answer options dynamically