<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>direct data on asdfasdfasdfasdfddd</title><link>https://academy.test.quriobot.com/tags/direct-data/</link><description>Recent content in direct data on asdfasdfasdfasdfddd</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><atom:link href="https://academy.test.quriobot.com/tags/direct-data/index.xml" rel="self" type="application/rss+xml"/><item><title>Send your Response data directly after a certain step answer</title><link>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/send-your-response-data-directly-after-a-certain-step-answer/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/send-your-response-data-directly-after-a-certain-step-answer/</guid><description>If you need to send the response data directly after a step answer is given without waiting for the whole bot to complete, you can use the onAnswer callback in the Advanced Initialization options on the Advanced tab (at the bottom):
{ onAnswer: function(results, question, storedData) { // prepare answers by index var answersByIndex = {}; results.answers.forEach(function(item) { answersByIndex[item.question.index] = { value: item.value.value, text: item.text &amp;amp;&amp;amp; item.text.answers_text ? (typeof item.text.answers_text === &amp;#34;object&amp;#34; ?</description></item></channel></rss>