<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Advanced options: API, JS, Response data, etc on asdfasdfasdfasdfddd</title><link>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/</link><description>Recent content in Advanced options: API, JS, Response data, etc on asdfasdfasdfasdfddd</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><atom:link href="https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/index.xml" rel="self" type="application/rss+xml"/><item><title>2-way direct Google Sheets integration via Google App Script</title><link>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/2-way-direct-google-sheets-integration-via-google-app-script/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/2-way-direct-google-sheets-integration-via-google-app-script/</guid><description>Even though it is possible to integrate with the Google Sheets via Integromat or Zapier, you might still want to set up the integration directly.
The direct integration is also the most flexible way in terms of the possibilities, as you can not only work with the data from the Google Sheets but also call pretty much any other Google service.
To demonstrate the approach we&amp;rsquo;ll use such bot flow:</description></item><item><title>Add a Chart (with Chart JS library) in your bot</title><link>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/add-a-chart-with-chart-js-library-in-your-bot/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/add-a-chart-with-chart-js-library-in-your-bot/</guid><description>What if you want to embed some charts in your bot?
It&amp;rsquo;s possible with just a few steps!
You can see a working demo here: DEMO
We make use of the Chart JS library, for more options, please check their documentation.
Step 1. Enable developer mode
Step 2. Create a chat text of type HTML, and add such code:
&amp;lt;canvas id=&amp;#34;myChart&amp;#34; width=&amp;#34;100%&amp;#34;&amp;gt;&amp;lt;/canvas&amp;gt; &amp;lt;script&amp;gt; function loadChart() { var ctx; var myChart; //console.</description></item><item><title>Can I access response data immediately when the step question is answered?</title><link>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/can-i-access-response-data-immediately-when-the-step-question-is-answered/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/can-i-access-response-data-immediately-when-the-step-question-is-answered/</guid><description>Quriobot has an `onAnswer` hook function which is executed when every step question is answered.
Using advanced initialization options, you can set up your own `onAnswer` function which will be called with the response answer data plus the whole quriobot response data:
Note: this has moved to the Advanced tab</description></item><item><title>Can I control the bot programmatically?</title><link>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/can-i-control-the-bot-programmatically/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/can-i-control-the-bot-programmatically/</guid><description>Quriobot provides a basic Javascript API which you can use to control Quriobot&amp;rsquo;s behavior
Note: as we are actively developing it, new features are added as we go, but we always try to keep backward compatibility.
If you include widget code in your page, global quriobot object will be available and it has such methods:
quriobot.init (options) - initialize the bot if the explicit initialization was passed via widget URL API so your embed widget code will look like this: &amp;lt;script type=&amp;#34;text/javascript&amp;#34;&amp;gt; if (!</description></item><item><title>Can I customize the step answer validation?</title><link>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/can-i-customize-the-step-answer-validation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/can-i-customize-the-step-answer-validation/</guid><description>Sometimes you need to validate step answer value in a custom way, it can be your API endpoint, custom calculation etc.
For the some of the step types (ones like email, number etc), Quriobot allows the custom validation JavaScript function to be provided (note that the Developer Mode has to be enabled).
To have a custom validation for the step, follow those steps:
Step 1. In the step settings, enable custom answer validation:</description></item><item><title>Can I execute JavaScript function as a bot step or response?</title><link>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/can-i-execute-javascript-function-as-a-bot-step-or-response/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/can-i-execute-javascript-function-as-a-bot-step-or-response/</guid><description>Yes, you can, it is as easy as choosing the special chat text type - Script:</description></item><item><title>Can I put some advanced functionality such as dynamic min/max dates or disabling weekends to the Date/Time steps?</title><link>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/can-i-put-some-advanced-functionality-such-as-dynamic-min-max-dates-or-disabling-weekends-to-the-date-time-steps/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/can-i-put-some-advanced-functionality-such-as-dynamic-min-max-dates-or-disabling-weekends-to-the-date-time-steps/</guid><description>Yes, you can. If you enabled developer mode just use these simple solutions in the step settings advanced section Dynamic settings field.
There are available settings to set dynamically:
Option Type Default Description disable Array [
&amp;ldquo;function(date){return (date.getDay() === 5 || date.getDay() === 6)}&amp;rdquo;,
&amp;ldquo;2025-01-30&amp;rdquo;,
] If you’d like to make certain dates unavailable for selection, there are multiple methods of doing so.
1. Disabling specific date
2. Disabling a date range</description></item><item><title>Can I skip storing the responses at the Quriobot side?</title><link>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/can-i-skip-storing-the-responses-at-the-quriobot-side/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/can-i-skip-storing-the-responses-at-the-quriobot-side/</guid><description>Sometimes, you don&amp;rsquo;t want Quriobot to store the response data at all.
The use-cases can be that your respondents fill out some very sensitive data, like answers to the medical questionnaire.
Quriobot itself is not HIPAA-compliant. But by not storing the response data at Quriobot side you can effectively also skip the need of the HIPAA-compliancy by Quriobot.
You can enable the setting to skip the storage of the response data:</description></item><item><title>Can I store the IP address from the user?</title><link>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/can-i-store-the-ip-address-from-the-user/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/can-i-store-the-ip-address-from-the-user/</guid><description>We don&amp;rsquo;t store the IP addresses due to the GDPR compliance.
But if you still want to store it, it is possible using the system bot variable called infoIP:
Step 1. Add Goto step, putting the {{infoIP}} variable in its value setting (make sure that this step is the entry point step so the first in the list):
That&amp;rsquo;s it! Now you&amp;rsquo;ll have ip address available in the bot results, response connections etc.</description></item><item><title>Can I use JavaScript function result in the bot messages or responses?</title><link>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/can-i-use-javascript-function-result-in-the-bot-messages-or-responses/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://academy.test.quriobot.com/advanced-options-api-js-response-data-etc/can-i-use-javascript-function-result-in-the-bot-messages-or-responses/</guid><description>Using the Script variables, you can add your script variable with a JavaScript function calls to be used in Quriobot messages, options, responses, and response connections.</description></item></channel></rss>