<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Lydia Husser on Medium]]></title>
        <description><![CDATA[Stories by Lydia Husser on Medium]]></description>
        <link>https://medium.com/@lydia.husser?source=rss-a768dc5ef938------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PofLCDarmwkqpHCcSisPvw.jpeg</url>
            <title>Stories by Lydia Husser on Medium</title>
            <link>https://medium.com/@lydia.husser?source=rss-a768dc5ef938------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 09:12:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lydia.husser/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Using Flow XO with Dialogflow]]></title>
            <link>https://medium.com/flowxo/using-flow-xo-with-api-ai-86f59e24cda6?source=rss-a768dc5ef938------2</link>
            <guid isPermaLink="false">https://medium.com/p/86f59e24cda6</guid>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[messaging]]></category>
            <dc:creator><![CDATA[Lydia Husser]]></dc:creator>
            <pubDate>Tue, 11 Jul 2017 08:04:48 GMT</pubDate>
            <atom:updated>2018-01-05T10:55:05.659Z</atom:updated>
            <content:encoded><![CDATA[<p>A great way to complement Flow XO is with <a href="https://dialogflow.com/">Dialogflow</a> (formerly <a href="https://api.ai/">API.AI</a>), a service that can help you create natural language user interfaces. You can use Dialogflow with Flow XO to give your users a conversational experience. With this integration, you’ll be able to match natural language queries and even train your bot.</p><p><strong>If you don’t already have a free Flow XO account, </strong><a href="https://flowxo.com/app/signup"><strong>get yours now</strong></a><strong>.</strong></p><p>In this tutorial, you’ll create a bot that lets users view special offers for holidays. You’ll use Dialogflow to match conversational user input. This tutorial assumes that you already understand the basics of Dialogflow, but would like to learn how to use it with Flow XO. So, in this article, you’ll learn when and how to build a flow that integrates both services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*YpKz43kMSDid3w7TnBdbOQ.png" /></figure><h3>Why use Dialogflow with Flow XO?</h3><p>Flow XO already has features that can account for conversational input. For example, you can use categories to group words or phrases that your bot receives from users, and have your bot respond accordingly. You can also use Flow XO <strong>Analytics </strong>to view the Top Messages that your bot receives, and improve your messaging based on that. So, when is it useful to integrate Dialogflow?</p><p>Dialogflow is great to use with Flow XO when you need:</p><ul><li><strong>NLP (natural language processing): </strong>With Dialogflow, your users can interact with your bot using natural sentences and phrases. Dialogflow can then match the input with a command and give users predetermined responses.</li><li><strong>To understand a user’s intent: </strong>You can use Dialogflow to map synonyms with programmatic entities. From there, you can infer the user’s intent, and match the intent to an action.</li><li><strong>Machine learning: </strong>Dialogflow offers the ability to train your agent with machine learning. This is a useful feature for handling user input that your bot is not yet programmed to respond to. You can then analyze conversation logs and improve intents.</li></ul><p>In this tutorial, you’ll learn how you can integrate these features from Dialogflow to build an intuitive bot for your users with Flow XO.</p><blockquote><strong>Note:</strong> There are other services that are similar to Dialogflow, like <a href="https://wit.ai/">wit.ai</a> and <a href="https://www.luis.ai/">luis.ai</a>. If you’d like, you can use these with Flow XO instead.</blockquote><h3>Set up Dialogflow</h3><p>To create an integrated bot, the first step is to set up an agent in Dialogflow. If you need help using Dialogflow, please see the <a href="https://api.ai/docs/getting-started/basics">Getting Started</a> guide there.</p><p>Once you have an agent, you’ll set <strong>intents </strong>in Dialogflow. These are natural language expressions that people might use to talk to your bot. For example, users looking for holiday deals might say things like:</p><ul><li>“show me discounts”</li><li>“I’d like to see deals”</li><li>“holiday offers”</li><li>“look at special offers”</li></ul><p>Plug these phrases into your Dialogflow agent as intents. Later, in Flow XO, you’ll create a trigger that will relay any user input to Dialogflow.</p><p>Then, you’ll set <strong>actions </strong>to ask followup questions. For this tutorial, set up Dialogflow to ask:</p><ul><li>Which type of offers would you like to see? Long haul or short haul?</li><li>Which deals would you prefer? Summer or winter?</li></ul><p>You can set up Dialogflow to read natural language responses to these questions, then store it as standardized output.</p><h3>Integrate Dialogflow with Flow XO</h3><p>Now that you’ve set up natural language queries in Dialogflow, you can access them from Flow XO. In Flow XO, your bot can read and send the questions you added to your agent in Dialogflow. Then, you can send the user’s answer to Dialogflow and receive a follow-up question.</p><p>Follow these steps to integrate Flow XO and Dialogflow.</p><h4>1. Create a Catch-All Flow</h4><p>In Flow XO, create a catch-all flow that will take any input from the user. This flexible input option will help you teach Dialogflow what to expect from users. To set this up:</p><ol><li>On your Flows page, click <strong>+ New Flow</strong>. Select <strong>Blank Flow</strong>, then give your new flow a name.</li><li>Click <strong>+ </strong>to add a trigger. Select <strong>Bot → Catch-all, </strong>click <strong>Next.</strong></li><li>Finish and save the trigger.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*uqdvJJN9A0E7M7Cw0MegEw.png" /></figure><p>The Catch-all trigger will start this flow with any word or phrase from the user.</p><h4>2. Make an HTTP Request</h4><p>The next step is to send the user’s query to Dialogflow. For this step, you’ll create an HTTP Request action in Flow XO. Here’s how to do this:</p><ol><li>In your flow, click <strong>+ </strong>to add an action below your trigger. Select <strong>Webhook &amp; HTTP → Make an HTTP Request</strong>. Then click <strong>Next</strong>.</li><li>Complete the following fields under HTTP Request Settings. See below for an explanation of each field:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*CpbT6HOTWYt_MQCBZo2E-Q.jpeg" /></figure><p><strong>Request URL: </strong>Paste the URL <strong>https://api.api.ai/v1/query</strong> in this field. This will connect your bot to Dialogflow.</p><p><strong>Method: </strong>Select <strong>POST </strong>to indicate that you are sending data to the URL.</p><p><strong>Content Type: </strong>Select <strong>Raw</strong> <strong>Body</strong>. You’ll enter your data as a complete query.</p><p><strong>Body: </strong>This field contains the input that your are sending to Dialogflow. The platform accepts input in JSON format. Here is what the JSON code contains:</p><ul><li><strong>query: </strong>This is the message that the user sent to your bot. It’s the output from your Catch-all trigger. To access the trigger output here, type <strong>{{</strong> in the Body. Find your trigger in the drop-down, then select <strong>Message</strong> below that:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/229/1*GldaVAGCic2ZIBvBu9pfOQ.png" /></figure><ul><li><strong>lang: </strong>The code for the language that the user and your bot are chatting in.</li><li><strong>sessionId: </strong>For this field, you can use any ID that will stay the same for each user, that is also unique to the user (User ID is perfect of course). Similar to the query, you can access this by typing <strong>{{ </strong>in the Body. Find your trigger in the drop-down, then select <strong>User ID</strong>.</li></ul><p><strong>Headers: </strong>This is other data that you are sending to Dialogflow that is separate from your query.</p><ul><li><strong>Authorization: </strong>Paste your Dialogflow key in this field. You can find it on Dialogflow under the settings for your Agent.</li><li><strong>content-type: </strong>Indicates the type of data you are sending. You can leave out this field and Flow XO will add it for you.</li></ul><p>When you’re done, click <strong>Next</strong>. Finish and save your HTTP Request action. Now that you’ve connected your Flow XO bot, you can use the actions you set up in Dialogflow.</p><h4>3. Ask a Question from Your Dialogflow Agent</h4><p>When Dialogflow resolves the query from the user, it will send back the first action you set up there. Remember that the first action was to ask the user which type of offers that they want to see — long haul or short haul.</p><p>The data sent from Dialogflow will look something like this:</p><pre><strong>Data</strong><br>{<br>  &quot;id&quot;: &quot;XXXXXXX&quot;,<br>  &quot;timestamp&quot;: &quot;2017-06-22T09:12:26.536Z&quot;,<br>  &quot;lang&quot;: &quot;en&quot;,<br>  &quot;result&quot;: {<br>    &quot;source&quot;: &quot;agent&quot;,<br>    &quot;resolvedQuery&quot;: &quot;look at special offers&quot;,<br>    <strong>&quot;speech&quot;: &quot;Which type of offers would you like to see? Long haul or short haul?&quot;,</strong><br>    &quot;action&quot;: &quot;Follow&quot;,<br>    &quot;parameters&quot;: {<br>      &quot;OfferType&quot;: &quot;&quot;,<br>      &quot;Option&quot;: &quot;&quot;<br>    },<br>    …<br>  &quot;sessionId&quot;: &quot;XXXXXXX&quot;<br>}</pre><p>Your Dialogflow log may look a bit different, depending on how you set up your intents and actions. The important thing is the value for <strong>speech</strong>. This is the question you want to have your bot send to the user.</p><p>You can access this value in Flow XO. To set this up:</p><ol><li>In your flow, click <strong>+ </strong>to add an action. Select <strong>Bot → Ask a Question</strong>, and click <strong>Next</strong>.</li><li>In the <strong>Question</strong> field, have your bot read the <strong>speech </strong>value it received from Dialogflow. Type <strong>{{ </strong>and find your HTTP Request<strong> </strong>action in the drop-down menu. Select <strong>Data {}</strong> below that:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/233/1*gbdiTCU_dqgxyPynWo5ulg.png" /></figure><p>You should now see the <strong>Data Key </strong>popup. This is where you’ll tell your bot what to read in the JSON output from Dialogflow. In the log above, <strong>speech </strong>is nested under <strong>result</strong>, which is nested under <strong>data</strong>. In Flow XO, you’ll use underscores to indicate nested keys:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*sBEyGSPrLeUNQr6n1Z9dSQ.jpeg" /></figure><p>You can read more about <a href="https://support.flowxo.com/article/143-data-outputs">Data Outputs</a> in the Flow XO Help Center.</p><p>Your question should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*zrWAbSrWKV9X_7ODgXugjw.jpeg" /></figure><p>Click <strong>Next</strong>, then finish and save the action.</p><p>Now your bot will read the <strong>speech </strong>key from Dialogflow, and relay that question to the user.</p><h4>4. Set an Attribute</h4><p>Now that you’ve asked your question, you’ll want to store the user’s response in an attribute so that you can access it later.</p><p>Here’s how to do this in Flow XO:</p><ol><li>In your flow, click <strong>+ </strong>to add an action<strong>. </strong>Select <strong>Attributes → Set an Attribute</strong>, then click <strong>Next</strong>.</li><li>In the Settings window, click <strong>+ Add</strong> to add an attribute.</li><li>In the <strong>Name </strong>attribute, you can reuse the question from Dialogflow. For example: <strong>{{make_a_http_request.data__result__speech}}</strong></li><li>In the <strong>Value </strong>attribute, use the output from your <strong>Ask a Question</strong> action. For example: <strong>{{option_longshort_haul.parsed_answer}}</strong></li></ol><p>Your attribute should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*joVhzmtoaQzqMP8JY8Diag.png" /></figure><p>Click <strong>Next</strong>, then finish and save the action.</p><p>You’ll be able to access the user’s answer in filters and other actions, and even use it in other flows.</p><h4>5. Send the Response to Dialogflow</h4><p>Now that you have the answer to your first question, you’ll need to send the user’s response back to Dialogflow. Depending on how you set up your actions there, Dialogflow can use the response to send your followup question.</p><p>Follow these steps to send the user’s response to Dialogflow:</p><ol><li>In your flow, click <strong>+ </strong>to add an action. Select <strong>Webhook &amp; HTTP → Make an HTTP Request</strong>, and click <strong>Next</strong>.</li><li>The setup for this HTTP request is similar to the request you made earlier. But, instead of sending the trigger output, you’ll send the output from your Ask a Question action.</li></ol><p>The HTTP Request should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*l8ftwsuKKe2gFFw5b9f8cQ.jpeg" /></figure><p>Now you’re ready to receive your followup question from Dialogflow. Repeat steps 3–5 to ask the user your follow-up question, store the second response as an attribute, then send the response back to Dialogflow in an HTTP Request.</p><p>Finally, you might use your stored attributes in a filter that triggers another flow.</p><h3>Conclusion</h3><p>You now have a Flow XO bot that is integrated with Dialogflow. From here, you might want to experiment with other natural language features and logic on Dialogflow, and use them with your Flow XO bot. With Flow XO, you have the flexibility to customize and improve how your users interact with your bot.</p><blockquote>Thank you for Flow XO user <a href="http://talvinder.com/"><strong>Talvinder Singh</strong></a> for his valued input in preparing this tutorial! Talvinder is an entrepreneur and independent product consultant who may be available to <a href="http://talvinder.com/consulting/">consult on your project</a>.</blockquote><p><strong>Want to find out more? We have full documentation on Flow XO over at our </strong><a href="https://support.flowxo.com/"><strong>Help Center</strong></a><strong>, or get help &amp; advice from other Flow XO users on the </strong><a href="https://community.flowxo.com/"><strong>Community Site</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86f59e24cda6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flowxo/using-flow-xo-with-api-ai-86f59e24cda6">Using Flow XO with Dialogflow</a> was originally published in <a href="https://medium.com/flowxo">Flow XO</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Response Paths in Flow XO]]></title>
            <link>https://medium.com/flowxo/using-response-paths-in-flow-xo-ebb7def40ede?source=rss-a768dc5ef938------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebb7def40ede</guid>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[messaging]]></category>
            <category><![CDATA[chatbots]]></category>
            <dc:creator><![CDATA[Lydia Husser]]></dc:creator>
            <pubDate>Fri, 23 Jun 2017 12:13:50 GMT</pubDate>
            <atom:updated>2017-06-23T12:13:50.159Z</atom:updated>
            <content:encoded><![CDATA[<p>In Flow XO, every user of your bot on each platform has a unique response path. Like a phone number or email address, the response path is a unique identifier that you can use to contact that user whenever you need.</p><p><strong>If you don’t already have a free Flow XO account, </strong><a href="https://flowxo.com/app/signup"><strong>get yours now</strong></a><strong>.</strong></p><p>Say you want to build a bot that takes custom cake orders. With response paths, you can take an order and later send the customer a status update. In this tutorial, you’ll learn the most common use for response paths in Flow XO. You’ll also learn how to capture a response path in Google Sheets then access it later. Then, using the webhooks feature, you can notify your customer when you update the order status.</p><h3>Basic Response Path</h3><p>Every user of any of your bots has a response path. Flow XO automatically generates a response path ID for you. So, to create the initial response path, all you need to do is set up a regular flow.</p><p>For this example, you might have the customer start a cake order with the phrase, “Place an order”. When a customer triggers this flow, your bot will assign a unique ID as the response path. Now we can use that same ID to send a message to the user (or ask them a question) whenever we want.</p><h4>Create a Flow</h4><p>To generate a response path, first create a flow. Follow these steps to set up the trigger for your flow:</p><ol><li>On your Flows page, click <strong>+ New Flow</strong>, then select <strong>Blank Flow</strong>.</li><li>Click <strong>+ </strong>to add a trigger. Select <strong>Bot → New Message</strong> and click <strong>Next</strong>.</li><li>Under <strong>Words and Phrases</strong>, type “Place an order”. This is the text that will trigger the flow. Click <strong>Next</strong>.</li><li>Give your trigger a clear name, like “Custom cake order”. In later actions, this will be how the response path is labelled:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*K0amj7P09Vdv5J3egd2wCg.png" /></figure><p>Next, continue the flow with an action. Have your bot ask the user what type of cake they’d like:</p><ol><li>In your flow, add an action. Select <strong>Bot → Ask a Question</strong>, then click <strong>Next</strong>.</li><li>The <strong>Response Path </strong>should match the name that you gave your trigger, in this case “Custom cake order”. Most of the time, Flow XO will choose the right response path for you. You’ll rarely need to change this field.</li><li>For the <strong>Question Type</strong>, select <strong>Choice</strong>. Type your <strong>Question</strong>, and list your <strong>Choices</strong>. Your action should look something like this:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*p-uxZ287RiXVVTVcAiidgQ.png" /></figure><p>Add a few more actions to this flow. You might ask if the customer wants to write a message on the cake and when they would like to pick up their order.</p><p>You now have a flow with a continuous response path. When a customer triggers this flow, each action will happen on the same response path (back to the user who originally triggered the flow).</p><h4>Test Your Bot and Check the Log</h4><p>To see how the response path works, the next step is to test your bot.</p><ol><li>Turn on your flow and run your bot.</li><li>Go to the <strong>Interactions </strong>page, which lists every interaction with your bot.</li><li>Click <strong>Details </strong>to see the log for an interaction:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*O2jH1-s5oiywuwSMPHXqiQ.png" /></figure><p>The log for an interaction will look something like this. Note that the <strong>Response Path</strong> has the same ID for the trigger and each action in the flow. Your bot uses this ID to identify the user:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*bbXcfvY4WG5ZIRGYIHYZyA.png" /></figure><p>This is the basic operation for response paths in Flow XO. As you’ll discover in the next part of this tutorial, response paths are an extremely useful tool for interacting with users.</p><h3>Send a Status Update Message</h3><p>After you receive a custom cake order, you’ll want to forward the customer’s input to an external application for order fulfillment. Then, when the order status changes, you can have your bot automatically notify the customer by triggering a flow with a webhook. To send this message, your bot will need to access the original response path.</p><p>Follow the steps below to set this up.</p><h4>1. Set Up Google Sheets</h4><p>To capture a response path, the first step is to create a spreadsheet in Google Sheets. You must create your spreadsheet before you can access it in a flow. If you’re new to Google Sheets, you might want to see our other tutorial, <a href="https://medium.com/flowxo/using-google-sheets-in-flow-xo-4535d904514f">Using Google Sheets in Flow XO</a>.</p><p>Give your spreadsheet an <strong>Order Number </strong>column and a <strong>Response Path </strong>column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*bJMowfj0J0mEj7BmV_Ka2Q.png" /></figure><p>Now your spreadsheet can store the order number and response path for every order you receive through your bot.</p><h4>2. Send the Order to an External Application</h4><p>Next, you’ll need to send the customer input to an external application that will process the order. At the same time, you’ll need to get an order number from your application. Later, when you receive a status update via webhook, you’ll use the order number to tell your bot what to respond to.</p><p>There are numerous applications for order processing, so you’ll need to choose one and set it up to receive HTTP requests from Flow XO. While we can’t tell you how your external application will work, we can describe what to do in Flow XO:</p><ol><li>At the end of the flow you’ve started, click <strong>+ </strong>to add an action. Select <strong>Webhook &amp; HTTP → Make an HTTP Request</strong>.</li><li>Connect your external application and Flow XO. You want your bot to send order details from Flow XO to the application. Then, the application should respond with the order number.</li></ol><p>Finish and save the <strong>HTTP Request </strong>action. The next step is to store the order number and response path in Google Sheets.</p><h4>3. Capture an Order Number and Response Path in Google Sheets</h4><p>You can capture the order number and response path in the Google Sheets spreadsheet that you’ve already set up. To do this:</p><ol><li>At the end of the same flow, click <strong>+ </strong>to add an action. Select <strong>Google Sheets →</strong> <strong>Add a Row.</strong> Then click <strong>Next</strong>.</li><li>If you’ve authorized your Google account, select <strong>Choose a connected account</strong>. Otherwise you’ll need to <strong>Connect a New Account</strong>. Click <strong>Next </strong>when you’re ready for the next step<strong>.</strong></li><li>In the <strong>Settings </strong>window, select the <strong>Spreadsheet </strong>and <strong>Worksheet</strong> that you just created.</li><li>The <strong>Order Number </strong>and <strong>Response Path</strong> fields correspond to the columns in your spreadsheet. In the <strong>Order Number </strong>field, capture the order number that you received from your external application. Type <strong>{{ </strong>and find the previous HTTP request action in the drop-down. Then select the order number output below that.</li><li>In the <strong>Response Path </strong>field, capture the response path for the current interaction. Type <strong>{{</strong> and select <strong>Response Path</strong> from the drop-down menu.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*zKozvhCN8kf08ZU_Zvj0FA.png" /></figure><p>The Settings window should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*zil_WOaK_0yxQwAU6kI-2g.png" /></figure><p>Click <strong>Next </strong>to finish and save the action. You’re done with the first flow. It should look similar to this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*WGOjW-HrLr0EVsU-1vNuHw.png" /></figure><p>Now, when a customer places an order, Flow XO will capture the order number and unique response path for the interaction. After an order is placed, your spreadsheet should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*2WIYIpH5oV9w5mKso3zpaA.png" /></figure><p>Now that you have the order number and original response path, you can send status updates to your customer.</p><h4>4. Create a New Flow to Send Status Updates</h4><p>Next, create a new flow that will notify your customer when there is a status update. The flow should follow this sequence:</p><ol><li>Receive a status update via webhook.</li><li>Get the response path from Google Sheets.</li><li>Use the response path to send a message to your customer.</li></ol><p>First, you need to send a webhook to Flow XO from your external application. For example:</p><blockquote><a href="https://flowxo.com/hooks/a/53ewaej7">https://flowxo.com/hooks/a/53ewaej7</a>?<strong>ordernumber</strong>=12345&amp;<strong>orderstatus</strong>=confirmed&amp;<strong>pickup</strong>=20/07/2017</blockquote><p>This webhook contains some information about the order. It tells us the order number (12345), the order status (confirmed) and the pick up date (20/07/2017).</p><p>To use this data, create a new flow with a webhook trigger:</p><ol><li>Click <strong>+ </strong>to add a trigger. Select <strong>Webhook &amp; HTTP → Receive a Webhook</strong>, then click <strong>Next</strong>.</li><li>Paste the webhook URL into the external service that you’ll be sending your webhook from. Click <strong>Next </strong>to finish and save the trigger.</li><li>Have your bot read the original response path that you captured in Google Sheets. To do this, click <strong>+ </strong>to add an action. Select <strong>Google Sheets → Search Rows</strong>, then click <strong>Next</strong>.</li><li>In the Settings window, have your bot take the order number from the webhook. Then it should find the matching value in the <strong>Order Number </strong>column. Here’s what this should look like:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*XFzKiPhCkAxYqaFOam6XYA.png" /></figure><p>Click <strong>Next </strong>to finish and save the action.</p><p>Finally, send a status update message along the original response path. To set up this action:</p><ol><li>In your flow, click <strong>+ </strong>to add an action. Select <strong>Bot → Send a Message</strong> and click <strong>Next</strong>.</li><li>In the <strong>Response Path</strong> field, tell your bot to look back to the Search Rows action (you’ll need to click the pencil icon to the right hand side of the response path field, this lets you use an output rather than select the response path from the trigger). Then use the response path from the row that it found.</li><li>In the <strong>Message </strong>field, type your status update. Use the order status and pick up date from the webhook.</li></ol><p>The Send a Message window should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*tOraENa1auo2bBj3CDefjQ.png" /></figure><p>Click <strong>Next </strong>to finish and save the action. The complete flow should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*1LlngkgPrCQHZR4v3X7onw.png" /></figure><p>You should now have two flows. The first takes the customer order and stores the order number and original response path in Google Sheets. The second is triggered by a webhook, and sends a status update along the original response path.</p><h3>Conclusion</h3><p>In this tutorial, you learned how response paths work in Flow XO. Now you can store a response path, and later send a message to the same user along the same response path. Response paths are one of the many flexible tools for building user interactions in Flow XO.</p><p><strong>Want to find out more? We have full documentation on Flow XO over at our </strong><a href="https://support.flowxo.com/"><strong>Help Center</strong></a><strong>, or get help &amp; advice from other Flow XO users on the </strong><a href="https://community.flowxo.com/"><strong>Community Site</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebb7def40ede" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flowxo/using-response-paths-in-flow-xo-ebb7def40ede">Using Response Paths in Flow XO</a> was originally published in <a href="https://medium.com/flowxo">Flow XO</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Data from the Web in Flow XO]]></title>
            <link>https://medium.com/flowxo/using-data-from-the-web-in-flow-xo-30a0178b4cf7?source=rss-a768dc5ef938------2</link>
            <guid isPermaLink="false">https://medium.com/p/30a0178b4cf7</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[facebook-messenger]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[bots]]></category>
            <dc:creator><![CDATA[Lydia Husser]]></dc:creator>
            <pubDate>Thu, 20 Apr 2017 13:19:10 GMT</pubDate>
            <atom:updated>2017-04-20T13:19:10.279Z</atom:updated>
            <content:encoded><![CDATA[<p>In Flow XO, you can use your bot to get data from outside web applications. With the Flow XO <strong>HTTP Request </strong>service, you can send a web request, then use the output in your flow. In this tutorial, you’ll use an HTTP Request to request information from an API, then send it to users.</p><p><strong>If you don’t already have a free Flow XO account, </strong><a href="https://flowxo.com/app/signup"><strong>get yours now</strong></a><strong>.</strong></p><p>For example, you might want your bot to send currency exchange rates from an API. For this tutorial, you’ll have your bot ask the user for a base currency. Then, it will use an HTTP Request to get currency exchange data from the <a href="http://fixer.io/">Fixer.io</a> API. Finally, your bot will send the user a card set displaying exchange rates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*2hkvlVW4trJm0rqZiy9BAA.png" /></figure><h3>Create Your Flow and Set a Trigger</h3><p>The first step is to establish your flow in the Flow XO Editor. You need to create a flow and set a trigger. To do this:</p><ol><li>In the Flow XO Editor, go to the <strong>Flows </strong>page and select <strong>+ New Flow</strong>.</li><li>Give your flow a clear name.</li><li>Click <strong>+ </strong>to add a trigger. Select <strong>Bot → New Message</strong> and click <strong>Next</strong>.</li><li>List some <strong>Words or Phrases </strong>that will activate this flow. For example:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*5-NQoiOgQRzRLxOPGbQl4g.png" /></figure><p>The user can access your currency exchange rates flow with any of these words.</p><h3>Set Base Currency</h3><p>To calculate a currency exchange rate, you need a base currency for comparison. The API at <a href="http://fixer.io/">Fixer.io</a> uses Euro by default, but you can edit the URL to calculate against other currencies. In this case, you can let the user choose the base currency.</p><p>To start, check what type of input that the API can receive. <a href="http://fixer.io/">Fixer.io</a> can accept several types of input, like currency codes and historical dates. For this tutorial, we’ll use three-letter currency codes (EUR, GBP, USD, etc.).</p><p>Next, have your bot ask the user to set the base currency. To do this:</p><ol><li>In your flow, add an action. Select <strong>Bot → Ask a Question</strong>, then click <strong>Next</strong>.</li><li>Set the <strong>Question Type </strong>to <strong>Choice</strong>. To make sure the output matches what you need for the API, give the user a list of options to choose from.</li><li>For each choice, set the <strong>Value</strong> to the corresponding three-letter code. The Value field can be especially helpful if you want your Choices to be more explanatory than the Value you need for the HTTP Request. In this case, the currency codes will work for both the Choice and Value.</li></ol><p>The Ask a Question window should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*2jRep4jI1N_bM3uH27IOlA.png" /></figure><p>Finish the action and click <strong>Save</strong>. Now the user can choose which currency they want to use as the base for exchange comparison. In the next step, you’ll use the output from this action in the currency API.</p><h3>Make an HTTP Request</h3><p>In Flow XO, you can use the <strong>HTTP Request </strong>service to gather data from outside web applications. In general, an HTTP request sends data to another server, then logs the output.</p><p>For this example, your bot will take the user’s base currency. Then, the HTTP Request service will send the base currency to the currency exchange API. Your bot will then log the output, in this case, a list of exchange rates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*bCJUcBswKZgvXo2zbT94ww.png" /></figure><p>To make an HTTP Request:</p><ol><li>In your flow, add an action. Select <strong>Webhook &amp; HTTP → Make an HTTP Request </strong>then click <strong>Next</strong>.</li><li>Next, complete the <strong>HTTP Request Settings</strong> window. Make sure to review the documentation at <a href="http://fixer.io/">Fixer.io</a> so that you know what data you can send, and what data it returns:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*Y-KSrKzrOtHPXgKsh0sZUQ.png" /></figure><ul><li><strong>Request URL: </strong>This is where you are sending your HTTP Request. For the <a href="http://fixer.io/">Fixer.io</a> API, you can set the base currency by adding it to the end of the URL, for instance <strong>?base=USD</strong>. In this case, you want to add the user’s selected currency. So, use the output from your <strong>Ask a Question </strong>action in the URL.</li><li><strong>Method: </strong>This field tells your bot what to do when it makes the request. In this case, use <strong>GET </strong>to log the output from the request.</li><li><strong>Content Type: </strong>This field tells your bot what type of data to expect. The API you’re using is a JSON application, so select JSON.</li><li><strong>Data: </strong>This field is useful if you need to send several key/value outputs, like form data. In this case, you only need to modify the URL to get data. So, you can leave this field empty.</li><li><strong>Headers: </strong>If you’re sending complex data, you can add headers as a reference point. For this example, headers are unnecessary.</li><li><strong>Basic Authentication: </strong>Some APIs require a username and password. The API you’re using does not, so you can leave this blank.</li><li><strong>JSON Options:</strong> This is how the data will display in your log. It’s a good idea to keep nesting enabled. Later, nesting will help you tell your bot what data to read from the log.</li></ul><p>Finish the HTTP Request action and click <strong>Save</strong>.</p><h4>Test the HTTP Request Output</h4><p>Before you add the next action to your flow, it’s important to test the output from your HTTP Request action. Flow XO relies on the structure of the data to find information in the log. Later, you’ll use the final data structure to tell your bot what to display to the user.</p><p>At this point, when you test your flow, you won’t see any output. The important thing is that your bot logs the output from your HTTP Request. The <strong>Output Data</strong> in your log should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*4G9rnYmnJ05N4GuqxSBwhQ.png" /></figure><p>As you can see, the list of exchange rates is nested inside of the <strong>rates </strong>key. This information will be important in the next step when you create a card set.</p><h3>Send the Output as a Card Set</h3><p>Now that you have the output from your HTTP Request, you can send it as a card set. In this case, you’ll have each card display the exchange rate for a different currency.</p><p>To set up your card set:</p><ol><li>In your flow, add an action. Select <strong>Bot → Send a Card Set</strong> and click <strong>Next</strong>.</li><li>Set up the first card. Add a <strong>Card Title</strong> for the first exchange rate you want to display. To help the user, you can also refer back to the base currency they selected:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*M8v5vsDumh3D1y3-_9ltUw.png" /></figure><p>Next, you’ll complete the <strong>Card Text </strong>field. For this field, you’ll use the data output from your HTTP Request.</p><h4>Using Data Outputs</h4><p>Here is where you need the HTTP Request output log that you generated earlier. In your browser, open the log in a new tab for quick reference. You’ll use this log to tell your bot where to look for each exchange rate.</p><p>First, locate the exchange rate for <strong>AUD</strong> in your log.</p><ul><li>As you noted earlier, exchange rate calculations are all nested in the curly brackets after the <strong>rates </strong>key.</li><li>The exchange rate for AUD is after the <strong>AUD </strong>key.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/1*cr8ZKYXn_3aZda1-bHhqiA.png" /></figure><p>This means you need to tell your bot to display the data output for <strong>rates → AUD</strong>.</p><p>To set this up in your card set:</p><ol><li>In the <strong>Card Text </strong>field, type <strong>{{</strong>. This will display a drop-down of outputs for each action in your flow.</li><li>Find the output for your HTTP Request action, and select <strong>Data { }</strong> below it:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*-nidZAHlqDAgtIZuAcw18Q.png" /></figure><p>This will open the <strong>Data Key</strong> popup. Here, you’ll use data outputs to tell your bot where to find the exchange rate you want to display. You can read more about <a href="https://support.flowxo.com/article/143-data-outputs">Data Outputs</a> in the Flow XO Help Center.</p><p>If you wanted to show the whole list of rates, you could just type <strong>rates </strong>in this field. But, because you want to show one exchange rate per card, you’ll need to type <strong>rates__AUD</strong>. In the Data Key field, the double underscore tells your bot that <strong>AUD </strong>is nested inside of <strong>rates</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*GaSHc2nqrGAu3a8HJHFVAQ.png" /></figure><p>Press <strong>Enter </strong>to finish the data output.</p><p>If you want a visual on your card, like a country flag, add a publicly accessible <strong>Card Image URL</strong>. Your first card should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*dIfC5yZsg5G2tnnzTXMt0Q.png" /></figure><p>To add more cards, click <strong>+ Add a card</strong>. Then follow the same steps for each exchange rate you want to display in your card set.</p><p>If you test your flow in Messenger, it should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*CCzf800lYHiOUhIypbjsZg.png" /></figure><h3>Conclusion</h3><p>In Flow XO, there are many ways that you can use bots to send and receive data from the web. In this tutorial, you learned how to use an HTTP Request to send data to an API, then log the output. You also learned how to use data outputs to display the information in a card set. Flow XO offers even more features for web data. You can make other types of HTTP requests, read HTML or XML, and send your own data in JSON format.</p><p><strong>Want to find out more? We have full documentation for the </strong><a href="https://support.flowxo.com/article/22-webhooks"><strong>Webhooks &amp; HTTP</strong></a><strong> service and other features in Flow XO over at our </strong><a href="https://support.flowxo.com/"><strong>Help Center</strong></a><strong>, or get help &amp; advice from other Flow XO users on the </strong><a href="https://community.flowxo.com/"><strong>Community Site</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30a0178b4cf7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flowxo/using-data-from-the-web-in-flow-xo-30a0178b4cf7">Using Data from the Web in Flow XO</a> was originally published in <a href="https://medium.com/flowxo">Flow XO</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Subscription Broadcast in Flow XO]]></title>
            <link>https://medium.com/flowxo/creating-a-subscription-broadcast-in-flow-xo-6c381e0f8828?source=rss-a768dc5ef938------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c381e0f8828</guid>
            <category><![CDATA[telegram]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[facebook-messenger]]></category>
            <category><![CDATA[chatbots]]></category>
            <dc:creator><![CDATA[Lydia Husser]]></dc:creator>
            <pubDate>Mon, 10 Apr 2017 10:48:01 GMT</pubDate>
            <atom:updated>2017-04-10T10:48:01.934Z</atom:updated>
            <content:encoded><![CDATA[<p>You might have several communication feeds that you’d like to broadcast to your users. For instance, you might want to broadcast your blog or Twitter updates. But, most of the time, you’ll only want to broadcast the feeds that each user is interested in. In Flow XO, you can broadcast feeds, and also let users customize which feeds they receive.</p><p><strong>If you don’t already have a free Flow XO account, </strong><a href="https://flowxo.com/app/signup"><strong>get yours now</strong></a><strong>.</strong></p><p>For this tutorial, you’ll create four different flows:</p><ul><li>In Flow 1, you’ll ask users which feeds they’d like to subscribe to.</li><li>In Flows 2 and 3, you’ll broadcast different feeds. Your bot will only broadcast channels that the user subscribed to.</li><li>In Flow 4, you’ll give the user options to unsubscribe from feeds.</li></ul><p>By the end, your <strong>Flows </strong>page in the Flow XO Editor will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*2mxb5qOntLPLpb_Ky0yQaw.png" /></figure><h3>Flow 1: Subscription Options</h3><p>In the first flow, you’ll present the user with feeds they can subscribe to. Then you’ll use attributes to mark the user’s selection. The attributes that you create in this flow will be used in all the other flows for this tutorial.</p><p>If you’re unfamiliar with attributes, you may want to review our other tutorial on <a href="https://medium.com/flowxo/attributes-in-flow-xo-5189eefd8d01">Attributes in Flow XO</a>.</p><h4>Create a Flow and Trigger</h4><p>Follow these steps to set up your first flow:</p><ol><li>In the Flow XO editor, click <strong>+ New Flow</strong>. Select <strong>Blank Flow</strong>.</li><li>In your new flow, click <strong>+ </strong>to add a trigger. Select <strong>Bot → New Message</strong>, then click <strong>Next</strong>.</li><li>In the <strong>Words or Phrases </strong>field, type “Subscribe”. Your bot will run this flow on the word “subscribe”:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*4I8MX7kt9iedWFjR-3GvPg.png" /></figure><p>Click <strong>Next </strong>to continue, finish and <strong>Save</strong>. There is no need to add a filter to this trigger.</p><p>If the user types “Subscribe” at any point, this flow will start.</p><h4>List Subscription Options</h4><p>The next step is to ask the user which feeds they’d like to subscribe to. For this tutorial, we’ll use the Flow XO Articles page and Twitter channel as an example. You can use any RSS feeds you’d like.</p><p>To list subscription options:</p><ol><li>In your flow, add an action. Select <strong>Bot → Ask a Question</strong>, then click <strong>Next</strong>.</li><li>Select <strong>Choice </strong>for your <strong>Question Type</strong>. Then ask your question.</li><li>Under <strong>Choices</strong>, list each subscription option. You can also add <strong>Both </strong>and <strong>None </strong>as options:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ZyX2z_8UM8HMZrpovlTEPg.png" /></figure><p>Click <strong>Next </strong>to continue, finish and click <strong>Save</strong>.</p><p>When your bot runs this action, it will present the user with these choices.</p><h4>Set Attributes</h4><p>Next, use attributes to mark which feeds the user subscribed to (if any). You’ll need to add a separate action for each attribute, as each will have a different filter.</p><p>To set an attribute for the first feed:</p><ol><li>In your flow, add an action. Select <strong>Attributes → Set an Attribute</strong>, then click <strong>Next</strong>.</li><li>In the <strong>Settings </strong>window, click <strong>+ Add </strong>to add an attribute.</li><li>In the <strong>Name </strong>field, give your attribute a clear name, like <strong>articles</strong>.</li><li>In the <strong>Value </strong>field, type <strong>subscribed </strong>to indicate the user has subscribed to the Articles feed. For example:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*mGoHEs8djhjEPP73ASSYaA.png" /></figure><p>Click <strong>Next </strong>to go to the Filter window.</p><p>Set up a filter so that your bot will only set <strong>articles </strong>to <strong>subscribed </strong>if the user subscribes to the Articles feed. Your bot should run this action if the user selects either <strong>Articles </strong>or <strong>Both</strong>. Here’s how to set this up:</p><ol><li>In the Filter window, set the first <strong>Value </strong>to check the output of the previous action. This was where you asked the user what they’d like to subscribe to.</li><li>Set the <strong>Condition</strong> to <strong>Equals</strong>.</li><li>For the second <strong>Value</strong>, enter <strong>Articles</strong>. This action will only run if the user subscribes to <strong>Articles.</strong></li><li>You also want this action to run if the user subscribes to <strong>Both</strong>. So click<strong> + OR </strong>to add a second condition for this action.</li><li>For the second condition, use the same settings for <strong>Value </strong>and <strong>Condition</strong>. For the second <strong>Value</strong>, enter <strong>Both</strong>. The Filter window should look like this:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*2EmtyvHJs_Gs4qRMA04T4w.png" /></figure><p>If the user selects <strong>Articles </strong>or <strong>Both</strong>, your bot will set <strong>articles </strong>to <strong>subscribed</strong>. Click <strong>Next</strong>, then <strong>Save </strong>this action.</p><p>Next, set a similar action for the Twitter subscription. A quick way to do this is to copy your previous action:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*7QgxOhnLbeYeK3A51_j1BA.png" /></figure><p>Then update the values for Twitter. Keep the filter to run this action if the user subscribes to <strong>Both</strong>.</p><p>For your final step in this flow, you might want to send a message confirming that the user has subscribed to a feed.</p><p>Your first flow is complete. Your bot will present subscription options to the user, and mark the feeds they subscribe to.</p><h3>Flow 2: RSS feed for Articles</h3><p>The next step is to check for updates to the Articles feed if the user subscribed to this feed. To do this, you’ll create a new flow that uses the Flow XO <strong>Broadcast </strong>trigger. When there is an update, you can display it on a card.</p><h4>Broadcast Trigger</h4><p>In Flow XO, the <strong>Broadcast </strong>trigger checks your RSS feed for updates. You can filter it so that it only runs if the user subscribes to the feed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*3pCGSBy8_o5KfwOdCNNvxg.png" /></figure><p>To set this up:</p><ol><li>On your <strong>Flows </strong>page, click <strong>+ New Flow</strong>. Select <strong>Blank Flow.</strong></li><li>Click <strong>+ </strong>to add a trigger. Select the <strong>Broadcast </strong>service.</li><li>Under <strong>Trigger</strong>, select <strong>New RSS Feed Item</strong>, then click <strong>Next.</strong></li><li>Keep <strong>Broadcast to users of all bots </strong>on. Click <strong>Next.</strong></li><li>In the <strong>Settings </strong>window, paste the <strong>Feed URL</strong> to your RSS feed, then click <strong>Next:</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ZW842SQ7ff6uKVrwmTtZOg.png" /></figure><p>Finally, add a Filter so that this trigger will only check for updates if the user subscribed to the feed. In this case, check if the <strong>articles </strong>attribute is set to <strong>subscribed:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*8rdFXM_pjLc5jSR-0ncJNA.png" /></figure><p>Click <strong>Next</strong>, name your trigger, then click <strong>Save</strong>. Your bot will now check the Articles RSS feed for updates if the user is subscribed.</p><h4>Send a Card</h4><p>When there is an update to your RSS feed, your bot can display it on a card. To do this:</p><ol><li>In your flow for the Articles RSS feed, add a new action. Select <strong>Bot → Send a Card</strong>, then click <strong>Next.</strong></li><li>Set up the card to display text, images, and links from your RSS feed. Your bot will gather information from each feed item for you. To access this, type <strong>{{</strong>, then select the output to display in each field:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*0bWTqvDvTwhF98P5CnMw2Q.png" /></figure><p>The data on your card will depend on what is available in your feed, and what you want to display. Here is an example of a completed card:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*IoxHBSf1lYGJjA3h29FXiw.png" /></figure><p>Click <strong>Next</strong>, then finish and save the card. There is no need to add a filter because the whole flow is already filtered.</p><blockquote><strong>Note: </strong>Your bot will only display a card when there is an update to your RSS feed. When you test this, you will not receive a card until the next update.</blockquote><h3>Flow 3: RSS feed for Twitter</h3><p>Now, create a flow for your second feed, in this case, the Twitter feed. Instead of starting over again, you can copy the flow for your Articles feed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*5tGELGPs6X16-ZwGBPWThg.png" /></figure><p>Then, like the <strong>Attribute</strong> action above, you can update values for your Twitter feed:</p><ul><li>Set the Broadcast URL to the Twitter RSS feed.</li><li>Filter the trigger so that it only runs when the attribute <strong>twitter </strong>is set to <strong>subscribed</strong>.</li><li>Set your card values according to what is available in your RSS feed.</li></ul><h3>Flow 4: Unsubscribe Options</h3><p>For the last flow, give users a way to unsubscribe from your feeds. The setup for this is similar to your first flow.</p><p>To begin, add a <strong>New Message </strong>trigger on the word “unsubscribe”. Do this in the same way you set up the trigger on your first flow.</p><p>Next, you need information from the user so that you can change the relevant attributes from <strong>subscribed </strong>to <strong>unsubscribed</strong>.</p><h4>Ask Which Feeds to Unsubscribe From</h4><p>Ask the user which feeds they want to unsubscribe from. Similar to the subscription flow, <strong>Ask a Question</strong>, then list the available feeds. Once again, you can add <strong>Both </strong>and <strong>None </strong>as options:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*_VgTcE-ruUJqUalQRO8-yQ.png" /></figure><p>Click <strong>Next, </strong>then finish and save the action. You’ll use the output from this action to update the attributes for unsubscribed feeds.</p><h4>Update Attributes</h4><p>Finally, update the attributes for the feeds that the user unsubscribed from. To do this, you’ll use <strong>Set an Attribute</strong> to overwrite the existing value in each feed attribute.</p><p>Starting with the <strong>articles </strong>attribute, set the value to <strong>unsubscribed</strong>. This will prevent the Articles flow from checking for updates:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*_hzH7nGZo6Q1w5lQXZS4Aw.png" /></figure><p>Then set the filter so this action will only run if the user unsubscribes from <strong>Articles</strong> or <strong>Both:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*u-ZWG2KGl-LVZjVvMFm2Xg.png" /></figure><p>Repeat this action for the <strong>twitter </strong>attribute.</p><p>For your last step in this flow, it’s a good idea to send a message to the user confirming that they have unsubscribed.</p><h3>Conclusion</h3><p>In this tutorial, you learned how to set up subscription options for a broadcast feed. Now your users will be able to customize which feeds they subscribe to. You can use this for any type of Broadcast in Flow XO. You can add even more customization with additional feeds, filters, and attributes.</p><p><strong>Want to find out more? We have full documentation for the </strong><a href="https://support.flowxo.com/article/160-broadcast"><strong>Broadcast</strong></a><strong> service and other features in Flow XO over at our </strong><a href="https://support.flowxo.com/"><strong>Help Center</strong></a><strong>, or get help &amp; advice from other Flow XO users on the </strong><a href="https://community.flowxo.com/"><strong>Community Site</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c381e0f8828" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flowxo/creating-a-subscription-broadcast-in-flow-xo-6c381e0f8828">Creating a Subscription Broadcast in Flow XO</a> was originally published in <a href="https://medium.com/flowxo">Flow XO</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Label and Goto a Label in Flow XO]]></title>
            <link>https://medium.com/flowxo/using-label-and-goto-a-label-in-flow-xo-b6fc8e2b6086?source=rss-a768dc5ef938------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6fc8e2b6086</guid>
            <category><![CDATA[telegram]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[facebook-messenger]]></category>
            <dc:creator><![CDATA[Lydia Husser]]></dc:creator>
            <pubDate>Wed, 05 Apr 2017 08:17:48 GMT</pubDate>
            <atom:updated>2017-04-05T08:17:48.802Z</atom:updated>
            <content:encoded><![CDATA[<p>When you build a flow in Flow XO, you might want to repeat part of a flow, or even skip some of it, depending on the user’s response. You can do this with the <strong>Label </strong>and <strong>Goto a Label </strong>actions.</p><p><strong>If you don’t already have a free Flow XO account, </strong><a href="https://flowxo.com/app/signup"><strong>get yours now</strong></a><strong>.</strong></p><p>For instance, say you run a restaurant. Your patrons can use your bot to reserve a table, but you only want to take reservations up to one month in advance. So, you’ll want your bot to check the date the user gives you. If it is more than one month from now, your bot should go back and ask for a date again.</p><p>To follow along with this tutorial, install this <a href="https://flowxo.com/share/4pwwn887">Shared Flow</a> in your Flow XO account.</p><h3>Plan Your Flow</h3><p>First, plan the framework for your flow. You want to ask the user for a date and check if the output is within a month from now. If it is not, your bot should go back to the top of the flow and repeat your original question. Before it does, you’ll want to tell the user why you’re asking again.</p><p>To go back to your original question, you’ll use the Flow<strong> </strong>actions <strong>Label </strong>and <strong>Goto a Label</strong>. These will tell your bot when it should go back, and where it should go back to. Your flow might look something like this:</p><ol><li><strong>Trigger</strong></li><li><strong>Label: </strong>This is where the loop starts.</li><li><strong>New Message: </strong>If the user gives a date later than 30 days from now, tell the user why you’re asking again. Your bot should only do this action if you’ve looped back from your <strong>Goto a Label</strong> action.</li><li><strong>Ask a Question: </strong>Ask the user for a date.</li><li><strong>Parse Date: </strong>Calculate what the date will be in 30 days, and store it.</li><li><strong>Goto a Label: </strong>This is where the loop ends.<strong> </strong>If the user’s date is more than 30 days from now, go back to <strong>2. Label</strong>.</li><li><strong>New Message: </strong>Confirm the date with the user.</li></ol><p>Now that you have an outline, you can start building your flow.</p><h3>Build Your Flow</h3><p>You’ll need to have date outputs in place before you can create filters for your <strong>Label </strong>and <strong>Goto a Label</strong> actions<strong>. </strong>This means that you’ll build your flow in the order that the user will see it. The order outlined above will be the result.</p><p>To begin:</p><ol><li>Create a trigger.</li><li>In your flow, add an action. Select <strong>Bot → Ask a Question</strong>, then ask the user to give a date. Use the <strong>Date (dd/mm) </strong>or <strong>Date (mm/dd)</strong> validation to make sure the output is a valid date.</li><li>Next, you’ll use the Flow XO <strong>Date &amp; Time</strong> feature to calculate and parse the date 30 days from now.</li></ol><h3>Parse Date</h3><p>You want to make sure the user has entered a date within one month. To do this, your bot needs to calculate what the date will be 30 days from now. Then it should store that date so you can use it later for comparison.</p><p>To do this, you’ll use the <strong>Parse Date </strong>action in your flow. This action will take your date input and store it as a standardized date.</p><ol><li>In your flow, add an action. Select <strong>Date &amp; Time → Parse Date</strong>, then click <strong>Next</strong>.</li><li>In the <strong>Settings</strong> window, type a <strong>Date/Time</strong> in a valid format. See <a href="https://support.flowxo.com/article/9-dates-times">Date &amp; Time Handling</a> in the Flow XO Help Center for acceptable date/time formats.</li></ol><p>In this case, you want your bot to calculate what the date will be in 30 days. So, in the <strong>Date/Time</strong> field, type “in 30 days”. Here’s what this looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*EQDL88l7EkSer2zuy-bvww.png" /></figure><p>Your bot will standardize and store the date output from this action.</p><h3>Add a Label</h3><p>At this point, your bot has a date from the user, and it knows what the date will be in 30 days. The next step is to compare these dates. If the date from the user is more than 30 days from now, your bot should loop back to your question. To do this you’ll use the actions <strong>Label </strong>and <strong>Goto a Label</strong>.</p><p>In Flow XO, the <strong>Label </strong>action creates a point that your bot can jump to. A bot can jump either forward or back within a flow.</p><p>In this case, you want your bot to jump back. Your bot should go to the point where you asked the user to input a date. To set this up:</p><ol><li>In your flow, add a new action <em>above </em>your <strong>Ask a Question </strong>action, where you asked the user to give a date.</li><li>For your new action, select <strong>Flow → Label</strong>, then click <strong>Next.</strong></li><li>In the <strong>Settings </strong>window, type a <strong>Word or Phrase</strong> that you will be able to remember later.</li></ol><p>The text you type in the <strong>Word or Phrase </strong>field identifies the unique label. Later, when you create a <strong>Goto a Label </strong>action, you’ll input the same word or phrase to tell your bot which label to jump to. In this case, you’ll call the label <strong>date</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*OxAzI6Vmerh_TTfnnm4LxQ.png" /></figure><p>Finish and save the label. Your flow should now look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*D_g1vyPmRAUDeH6a5fWyAg.png" /></figure><p>There are no filters on the <strong>Label</strong> action. Instead, you’ll add a filter to your <strong>Goto a Label </strong>action to tell your bot when to make this jump.</p><h3>Goto a Label</h3><p>In Flow XO, the <strong>Goto a Label </strong>action tells your bot what <strong>Label</strong> to jump to. It also tells your bot what conditions must be present to make the jump.</p><p>For this flow, you only want your bot to go back to your <strong>Label</strong> action if the user gives a date that is more than 30 days from now. To do this, you’ll create a <strong>Goto a Label </strong>action with a filter. You’ll also use metadata to track when the user activates the <strong>Goto a Label</strong> action.</p><p>To set this up in your flow:</p><ol><li>Add a new action <em>below </em>your <strong>Parse Date </strong>action. You’ll need the output from your <strong>Ask a Question </strong>and <strong>Parse Date </strong>actions.</li><li>For your new action, select <strong>Flow → Goto a Label</strong>. Then click <strong>Next</strong>.</li><li>In the <strong>Settings </strong>window, type the same <strong>Word or Phrase </strong>you used in the <strong>Label </strong>action earlier. This will tell your bot which <strong>Label</strong> to jump to when the user input meets filter conditions. Earlier, you used <strong>date</strong>, so use <strong>date </strong>again here:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*7Mc4YSjP8vxc25Ma4ntgrg.png" /></figure><p>Next, use the <strong>Metadata </strong>field to create an output for this action.</p><h4>Goto a Label Metadata</h4><p>In Flow XO, <strong>Metadata </strong>is optional information that your bot can store. When you put metadata on a <strong>Goto a Label </strong>action, it will carry over as an output for the <strong>Label </strong>action. You can use this output in other actions.</p><p>For this example, you’ll want to track whether the user has activated the <strong>Goto a Label</strong> action. Later, you’ll use this data to have your bot send a message that explains why you’re asking for a date again. Use <strong>Metadata </strong>to set up this output:</p><ol><li>Under <strong>Metadata</strong>, click <strong>+ Add </strong>to add a new field.</li><li>In the first column, give your metadata a name that you’ll be able to remember later.</li><li>In the second column, give your metadata a simple value, like <strong>1</strong>. For example:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*R7NeN6lJqD9iFeXLeWjcow.png" /></figure><p>In a later action, you’ll check whether this metadata field is empty. For now, click <strong>Next </strong>to add a filter to your <strong>Goto a Label </strong>action.</p><h4>Goto a Label Filter</h4><p>In this case, you only want your bot to jump back to your <strong>Label</strong> if the user gives a date that is more than 30 days from now. This means that you need a filter on your <strong>Goto a Label</strong> action that compares these dates. To create this filter:</p><ol><li>In the <strong>Filter </strong>window, enter the first <strong>Value</strong>. Use the output from your <strong>Ask a Question </strong>action, where you asked the user to give a date.</li><li>You want to check if the date is greater than 30 days from now. So, set the <strong>Condition </strong>to <strong>is greater than</strong>.</li><li>Enter the second <strong>Value</strong>. For this field, use the output from your <strong>Parse Date </strong>action. Remember, that is where your bot will calculate what the date will be 30 days from now.</li></ol><p>Here’s what your Filter window should look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*Y60V88h7tlPp7g9rGaUswg.png" /></figure><p>Your bot will only jump back to your <strong>Label </strong>if the user input meets these conditions. The <strong>Goto a Label </strong>action is now done. Click <strong>Next</strong>, then <strong>Save </strong>the action.</p><h3>Send a Message</h3><p>Next, tell the user why you’re asking for a date again. You only want your bot to do this after looping back to your <strong>Label</strong>. So, you’ll use a filter to check if the user activated the <strong>Goto a Label </strong>action. To do this:</p><ol><li>In your flow, add a new action. Place it <em>below </em>your <strong>Label</strong> action and <em>above </em>your <strong>Ask a Question</strong> action. This was where you asked the user to give a date.</li><li>For your new action, select <strong>Bot → Send a Message</strong>. Then click <strong>Next</strong>.</li><li>In the <strong>Message </strong>box, explain to the user that they need to give a date within the next 30 days. Click <strong>Next </strong>when you’re done.</li><li>In the Filter window, create a filter. Tell your bot to only send this message if the user activated the <strong>Goto a Label </strong>action.</li></ol><p>For the <strong>Value</strong>,<strong> </strong>tell your bot to look at the metadata output for your <strong>Label </strong>action. Remember that your bot will carry over metadata from the <strong>Goto Label </strong>action. To do this, type <strong>{{</strong>, find your <strong>Label, </strong>then select <strong>Metadata { }</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*aTcG0UK-AkgsVvv5hec3IQ.png" /></figure><p>In the <strong>Metadata Key</strong>, type the name you gave to the metadata field in your <strong>Goto a Label </strong>action. In this case, you used <strong>asking_again, </strong>so type that in the Key:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*eeIkNdAGRk0En8hikZ_j1w.png" /></figure><p>Set the <strong>Condition</strong> to <strong>is not empty</strong>. If this metadata is not empty, it means the user activated the <strong>Goto Label </strong>action. When this happens, your bot should send this message. Your filter should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*oRP617lx4zrVdxzD6LQm3w.png" /></figure><p>You now have a complete <strong>Label</strong> and <strong>Goto a Label</strong> loop. To close your flow, you may want to confirm the date with the user. Your complete flow might look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*d1k21PFsLc4QjBXnDlR_Dw.png" /></figure><h3>Conclusion</h3><p>In this tutorial, you learned how to build a bot using <strong>Label </strong>and <strong>Goto Label </strong>actions. You also learned about Flow XO’s <strong>Date &amp; Time</strong> feature, and a practical way to use <strong>Metadata</strong>. Flow XO has even more features that can help you build a responsive bot.</p><p><strong>Want to find out more? We have full documentation for the </strong><a href="https://support.flowxo.com/article/151-flow"><strong>Flow</strong></a><strong> action and other features in Flow XO over at our </strong><a href="https://support.flowxo.com/"><strong>Help Center</strong></a><strong>, or get help &amp; advice from other Flow XO users on the </strong><a href="https://community.flowxo.com/"><strong>Community Site</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6fc8e2b6086" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flowxo/using-label-and-goto-a-label-in-flow-xo-b6fc8e2b6086">Using Label and Goto a Label in Flow XO</a> was originally published in <a href="https://medium.com/flowxo">Flow XO</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Google Sheets in Flow XO, Part 2]]></title>
            <link>https://medium.com/flowxo/using-google-sheets-in-flow-xo-part-2-6936675c769e?source=rss-a768dc5ef938------2</link>
            <guid isPermaLink="false">https://medium.com/p/6936675c769e</guid>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[google-sheets]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[chatbots]]></category>
            <dc:creator><![CDATA[Lydia Husser]]></dc:creator>
            <pubDate>Wed, 29 Mar 2017 08:28:02 GMT</pubDate>
            <atom:updated>2017-03-29T08:28:02.700Z</atom:updated>
            <content:encoded><![CDATA[<p>In <a href="https://medium.com/flowxo/using-google-sheets-in-flow-xo-4535d904514f">Part 1</a> of this tutorial, we covered how to use Flow XO to search, add, and update information in Google Sheets. This tutorial will show you how you can use Google Sheets with even more features in Flow XO.</p><p><strong>If you don’t already have a free Flow XO account, </strong><a href="https://flowxo.com/app/signup"><strong>get yours now</strong></a><strong>.</strong></p><p>In the last tutorial, you created a mailing list bot for a bakery. You set up a flow to collect and verify contact information from your customers. Now you can build on your bot. In this tutorial, you’ll learn a time-saving way to use Google Sheets when you respond to grouped words or phrases. You’ll also learn how to use Google Sheets to make a card set that will be quick to update later.</p><h3>Respond to Grouped Words or Phrases</h3><p>In Flow XO, you can use <strong>groups </strong>to categorize words or phrases you might expect from users. You can then account for variable wording with a single response.</p><p>For example, this <strong>New Message</strong> trigger accounts for different ways users might send a greeting, request hours, or ask for a phone number. The bracketed word next to each message is the group:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*ILWM0LFtE5UR4dMLO3g8xg.png" /></figure><p>With Google Sheets, you can set up a spreadsheet that contains a response to each group. This can save you time when you set up your flow. Instead of creating a new action for every response, you can create just two actions: one to search your spreadsheet and one to send the response.</p><h4>Set Up Responses in Google Sheets</h4><p>Remember, always set up your spreadsheet <em>before</em> you use it in your flow. Flow XO needs an existing spreadsheet with a header row as a reference point.</p><p>Follow these steps to create a spreadsheet that contains a response to each group in your trigger.</p><ol><li>In Google Sheets, create a new spreadsheet and give it a clear name.</li><li>Give your spreadsheet a header row that labels the contents of each column. In this case, label the columns <strong>Question </strong>and<strong> Answer</strong>.</li><li>In the <strong>Question </strong>column, list the <em>exact </em>group names that you’ll use in the trigger for your flow.</li><li>In the <strong>Answer</strong> column, type your response to each group. Your spreadsheet should look like this:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*IlwF1jPY-sA5cMKjZqdjXQ.png" /></figure><p>All of your responses are now in one place. Later, if you decide to add more groups and responses, you only need to update the trigger and the spreadsheet. Because of what you’ll do in the next steps, any new responses won’t require new actions in your flow.</p><h4>Search Rows for a Response</h4><p>By now, you should have a trigger with grouped words or phrases and a spreadsheet with corresponding questions and answers. Now you’ll want your bot to respond to the user with an answer from your spreadsheet.</p><p>First, you need your bot to search your spreadsheet for the group that corresponds to the user’s input. For instance, “hello” is in the [greeting] group. If the user says “hello”, your bot should search for “greeting” in your spreadsheet. Here’s how you can do this:</p><ol><li>In your flow, add an action. Select <strong>Google Sheets → Search Rows</strong>, then click <strong>Next</strong>.</li><li>Your Google Sheets account should already be authorized (we covered this in the <a href="https://medium.com/flowxo/using-google-sheets-in-flow-xo-4535d904514f">last tutorial</a>). Click <strong>Next</strong>.</li><li>In the <strong>Settings </strong>window, select the <strong>Spreadsheet </strong>and <strong>Worksheet </strong>you want your bot to search.</li><li>Select the <strong>Column</strong> you want your bot to search. Remember that the options in this menu match the header row of your spreadsheet. Choose the column that contains your group names, in this case, the <strong>Question </strong>column.</li><li>In the <strong>Value </strong>field, tell your bot what to look for. You want the bot to take the group from the trigger output and find it in your spreadsheet. In the Value field, type <strong>{{</strong>, find your trigger in the drop-down, and select <strong>Group</strong> below it.</li></ol><p>Your Settings window should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*O6V4ceA9L8gQmzK0l4bSww.png" /></figure><p>Click <strong>Next</strong>,<strong> </strong>then finish and save the action. When this action runs, your bot will search the <strong>Question</strong> column of your spreadsheet and find the group that matches the trigger output.</p><h4>Send a Message</h4><p>Next, your bot should display the <strong>Answer </strong>on your spreadsheet that corresponds to the <strong>Question </strong>it found in the last step<strong>. </strong>To do this:</p><ol><li>In your flow, add an action. Select <strong>Bot → Send a Message</strong>,<strong> </strong>and click <strong>Next</strong>.</li><li>Instead of typing a message in the <strong>Message </strong>box, tell your bot to look back at the output from your <strong>Search Rows</strong> action. Then have it display the contents of the corresponding <strong>Answer </strong>column.</li></ol><p>Here’s what the Send a Message window should look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*mIXThCBdnNrit8E_QLE4tg.png" /></figure><p>Your bot will send a response from your spreadsheet that depends on the trigger output. So, if the user sends a greeting, your bot will reply with the text in the <strong>greeting</strong> row, <strong>Answer </strong>column.</p><p>With this setup, your bot can respond to any input from the user with just two actions. As long as there is a group in the trigger and matching group in your spreadsheet, your bot will always have the right response.</p><h3>Send Cards with Google Sheets</h3><p>In Flow XO, you can also use Google Sheets to send a card set to users. With cards, your bot can send links and captioned images. If you want to change card content regularly, it can be helpful to keep data in a spreadsheet rather than editing your flow directly.</p><p>For example, you might want your bakery bot to display weekly specials as a card set. You can set up your flow once, and change the specials each week in Google Sheets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*AVdZ3_kmSF2hZdGCCCHkmA.png" /></figure><h4>Set Up Cards in Google Sheets</h4><p>The first step is to set up a spreadsheet for cards. You’ll input the same data you would in a normal card set. But, instead of putting it directly in your flow, you’ll put it in a spreadsheet. To do this:</p><ol><li>Create a new spreadsheet in Google Sheets and give it a clear name.</li><li>Add a header row to your spreadsheet. In this example, we’ll use the headings, <strong>Special</strong>, <strong>Price</strong>, and <strong>Image</strong>.</li><li>Add content to your spreadsheet. Describe each Special and add a Price. In the Image column, paste the public URL to the image you want to display:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*RD7QPjzQm1c9k1RyOqbrqA.png" /></figure><p>The next step is to log this data so you can use it in your flow.</p><h4>List Rows</h4><p>To log your spreadsheet data, use the <strong>List Rows </strong>action in your flow. This action will read and log the entire spreadsheet so that you can use all of the data in later actions. Here’s how you can set this up:</p><ol><li>In your flow, add an action. Select <strong>Google Sheets → List Rows</strong>, then click <strong>Next</strong>.</li><li>In the Settings window, select the <strong>Spreadsheet </strong>and <strong>Worksheet </strong>you want your bot to log. Because this action reads the <em>entire</em> spreadsheet, there’s no need to specify any rows:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*ova8fFBRxiZxhjiMSlRNvg.png" /></figure><p>When this action runs, your bot will read all of the data in the spreadsheet. You’ll use this data in the next action.</p><h4>Send a Card Set</h4><p>Now you can set up a card set. You’ll use the output from the <strong>List Rows</strong> action in the fields for each card. To do this:</p><ol><li>In your flow, add an action. Select <strong>Bot → Send a Card Set</strong>, and click <strong>Next</strong>.</li><li>For the first card, use the data from the first row of your column. You’ll use <strong>collection outputs </strong>to signal the row you want to use.</li></ol><p>In the <strong>Card Title </strong>field, type <strong>{{. </strong>Then, in the drop-down menu, find the output from your <strong>List Rows </strong>action. Select the column that you want to take the card title from, in this case <strong>Special</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*Mtd30c_E7BTG8FwAsryXJQ.png" /></figure><p>As soon as you select a column, the <strong>Special Modifier </strong>window will pop up. Here is where <strong>collection outputs </strong>come in. In this case, your spreadsheet is the collection.</p><ul><li>For the first card, you want your bot to look in the first row of the spreadsheet. The first row is item 1 of the collection.</li><li>So, type <strong>1 </strong>in the Special Modifier window. This will tell your bot to only use the data from the first row:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/278/1*eQJ2Dcrol0Asimd1ZxHJaA.png" /></figure><blockquote><strong>Note:</strong> If you leave the Special Modifier blank, it will default to 1. You can either type “1” or leave a blank for the first row. You must specify a collection output for all other rows.</blockquote><p>When you press <strong>Enter</strong>, your first Card Title<strong> </strong>will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*ZSKGVNxonmZ-AaoYpLdZIQ.png" /></figure><p>Complete the rest of the fields in the same way. Use your <strong>Price </strong>column in the <strong>Card Text </strong>field and your <strong>Image </strong>column in the <strong>Card Image URL </strong>field:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*Bn_fvMpgZ9UwJGVa6BRPcQ.png" /></figure><p>To add the next card, click <strong>+ Add Card</strong>. For the second card, follow the same steps but change the collection output to <strong>2</strong>. For the third card, change the collection output to <strong>3</strong>.</p><p>Now your bot can read the data on your spreadsheet and send it to the user as a card set.</p><h3>Conclusion</h3><p>In Flow XO, Google Sheets can help you save time when you create a flow and when you update it later. In addition to collecting data, you can use Google Sheets to respond to users and even send images.</p><p><strong>Want to find out more? We have full documentation for </strong><a href="https://support.flowxo.com/article/35-google-sheets"><strong>Google Sheets</strong></a><strong> and other features in Flow XO over at our </strong><a href="https://support.flowxo.com/"><strong>Help Center</strong></a><strong>, or get help &amp; advice from other Flow XO users on the </strong><a href="https://community.flowxo.com/"><strong>Community Site</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6936675c769e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flowxo/using-google-sheets-in-flow-xo-part-2-6936675c769e">Using Google Sheets in Flow XO, Part 2</a> was originally published in <a href="https://medium.com/flowxo">Flow XO</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Google Sheets in Flow XO]]></title>
            <link>https://medium.com/flowxo/using-google-sheets-in-flow-xo-4535d904514f?source=rss-a768dc5ef938------2</link>
            <guid isPermaLink="false">https://medium.com/p/4535d904514f</guid>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[google-sheets]]></category>
            <category><![CDATA[messaging]]></category>
            <dc:creator><![CDATA[Lydia Husser]]></dc:creator>
            <pubDate>Mon, 20 Mar 2017 09:37:28 GMT</pubDate>
            <atom:updated>2017-03-29T08:44:09.868Z</atom:updated>
            <content:encoded><![CDATA[<p>In Flow XO, your bot can read and edit spreadsheet data in Google Sheets. In this tutorial, you’ll get an overview of Google Sheets. You’ll also learn how to use a bot to search for information in a spreadsheet, then update it if necessary.</p><p><strong>If you don’t already have a free Flow XO account, </strong><a href="https://flowxo.com/app/signup"><strong>get yours now</strong></a><strong>.</strong></p><p>For example, say you own a bakery, and periodically email your customers with news and deals. In Flow XO, Google Sheets is a good way to collect contact information. When a customer interacts with your bot for the first time, you can get their email address. Later, you might want to verify and update the email if necessary.</p><h3>About Google Sheets</h3><p>Google Sheets is a free spreadsheet tool that you can access here: <a href="https://drive.google.com/">https://drive.google.com/</a>. If you don’t have a Google account, it’s free to sign up for one.</p><p>When you have your account, go to Google Drive and create a new spreadsheet. Click <strong>New → Google Sheets</strong>.</p><p>Later, you’ll authorize your Google Sheets account in Flow XO. Your bot can then access spreadsheets that you create in Google Sheets.</p><h3>Google Sheets Setup</h3><p>It’s important to set up any spreadsheets you want to use <em>before </em>you create your flow. Your bot will use the header row and other content as a reference point when it interacts with your spreadsheet.</p><p>In this example, you want to gather customer contact information in Google Sheets. Create a new spreadsheet, then give it a clear title and a header row:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*Q6gojNKni36oSWHMMWfIvw.png" /></figure><p>The header row is the first row of the spreadsheet. It specifies the data that will go in each column. In this case, we want to collect each customer’s <strong>Name </strong>and <strong>Email</strong>.</p><h4>Authorize Google Sheets</h4><p>When you use Google Sheets in your flow for the first time, you’ll need to authorize your account. To do this:</p><ol><li>Sign in to your Google account.</li><li>In your flow, add an action and select <strong>Google Sheets → Search Rows.</strong> Then click <strong>Next</strong>.</li><li>In the <strong>Authorize the Service</strong> window, select <strong>Connect a new account</strong>. Then click <strong>Authorize</strong>.</li><li>When the Google Accounts window opens, choose the account you want to authorize.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*V1CagRcQEkSapJt2YXjatw.png" /></figure><p>The next time you use Google Sheets in a flow, Flow XO will connect to your authorized account.</p><h3>Search Rows</h3><p>After you set up your spreadsheet, you can interact with it in your flow. One useful interaction is to <strong>Search Rows</strong> for data.</p><p>In this tutorial, you’ve created a spreadsheet to collect customer names and email addresses for your bakery mailing list. Before you add a customer to the spreadsheet, it’s a good idea to check if they’re already on the list. This will help you avoid redundant data.</p><p>If you followed the steps above, under <strong>Authorize Google Sheets</strong>, you should have the start of a <strong>Search Rows</strong> action.</p><p>From the <strong>Authorize the Service </strong>window, click <strong>Next</strong>, then complete the <strong>Settings </strong>window. This window tells your bot what spreadsheet to search in and what value to search for:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*8uSx-nxNGYr1lgiVOk4Lhw.png" /></figure><ul><li><strong>Spreadsheet: </strong>Select the spreadsheet you want your bot to search.</li><li><strong>Worksheet: </strong>Select the worksheet you want to use. If your spreadsheet has several worksheets, they will all be listed here. In this case, there’s only one worksheet, so select <strong>Sheet1</strong>.</li><li><strong>Column: </strong>This field takes content from the header row in your spreadsheet. Select the header for the column that you want to search. For this example, tell your bot to search the <strong>Name</strong> column to see if the customer name is already on the list.</li><li><strong>Value: </strong>Enter the value you’re searching for. This can be a plain text value, or you can use an output from your flow. Here, the value {{bakery_bot.user_name}} tells the bot to search for text that matches the user name.</li></ul><blockquote><strong>Note: </strong>Your bot will capture the user name for you on most platforms. To access it, type <strong>{{</strong>, then select <strong>User Name:</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/325/1*8TgUBK6Xqo2C4ZDlgUm5hA.png" /></figure><p>Click <strong>Next </strong>to finish and save your action. The next step is to create another action that depends on whether your bot finds a match.</p><h4>Filtering Search Results</h4><p>Once you have your search results, you can use a filter to tell your bot what to do next.</p><p>For your mailing list, you might want to do two different actions, depending on search results:</p><ul><li>If the user is not on the the mailing list, ask for an email address.</li><li>If the user is on the mailing list, verify that the email address on record is correct.</li></ul><p>First, set up an action for users who are not on the mailing list.</p><ol><li>In your flow, add an action. Select <strong>Bot → Ask a Question</strong>.</li><li>Type a Question to ask for the user’s email address. Make sure to use the <strong>Email Address</strong> validation. Then click <strong>Next</strong>.</li><li>In the Filter window, create a filter to check if there are matching results from your <strong>Search Rows </strong>action.</li></ol><p>For the filter, you want your bot to check the results count. Then, you only want it to do the action if there are no results. Your filter should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*jFDsP7V7C361sJPoUACo5w.png" /></figure><p>This action will only run if there are no matching results from your <strong>Search Rows</strong> action.</p><p>For the second action, you’ll create a similar filter. But this time, you’ll only want it to run if there is a match. In other words, if the results count is <strong>1</strong>, then do the second action. We’ll cover the second action later in this tutorial.</p><h3>Add a Row</h3><p>In Flow XO, your bot can add new data to Google Sheets. You can do this with the <strong>Add a Row </strong>action.</p><p>At this point, you’ve asked the user for their email address. Now you want to take that data and add it to your spreadsheet. To set this up:</p><ol><li>In your flow, add an action and select <strong>Google Sheets →</strong> <strong>Add a Row.</strong> Then click <strong>Next</strong>.</li><li>At this point, you’ve authorized your Google account, so select <strong>Choose a connected account</strong>. Click <strong>Next.</strong></li><li>In the <strong>Settings </strong>window, tell your bot what to add to the spreadsheet.</li></ol><p>Your Settings window should look like this. The <strong>Name </strong>and <strong>Email </strong>fields correspond to the columns in your spreadsheet:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*_8vQQJycPgQoTQGNHKuFoQ.png" /></figure><ul><li><strong>Spreadsheet: </strong>Select the spreadsheet you are adding a row to.</li><li><strong>Worksheet: </strong>Select the worksheet to edit.</li><li><strong>Name: </strong>The value in this field will go in the <strong>Name </strong>column of your spreadsheet. In this example, the bot will grab the user name.</li><li><strong>Email: </strong>The value in this field will go in the <strong>Email</strong> column of your spreadsheet. Here we’ve told the bot to take the output from our last question, “What is your email address?” and add it to the spreadsheet.</li></ul><p>When a new user enters an email address, your bot will add it to the spreadsheet:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*WrpGqUid2C7MbWRJWn_mwQ.png" /></figure><h3>Update a Row</h3><p>Another useful feature of Flow XO is to update a row in your spreadsheet. If the user changes information, you can tell your bot to update it in Google Sheets.</p><p>At this point, you’ve handled new users who aren’t on the mailing list yet. For returning users, you might want to verify that their email is correct.</p><p>To do this, there are a few steps you need to follow in sequence.</p><h4>1. Get a Row</h4><p>Use <strong>Get a Row </strong>to tell your bot what spreadsheet row to read. Later you will use the output from this action to tell your bot what to update. To get a row:</p><ol><li>In your flow, add a new action. Chose <strong>Google Sheets → Get a Row</strong>, and click <strong>Next.</strong></li><li>Connect to your authorized account, and click <strong>Next</strong>.</li><li>In the <strong>Settings </strong>window, tell your bot what row to get.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*v4rDPCj9RSv1utDv9JeKJQ.png" /></figure><ul><li><strong>Spreadsheet: </strong>Select the spreadsheet you want your bot to look in.</li><li><strong>Worksheet: </strong>Select the worksheeet that contains the row you want to update.</li><li><strong>Row ID: </strong>You can use this field if you want your bot to get an absolute row (Row 3, for example). But, in this case, you want to your bot to get a row that will vary depending on who your bot is chatting with. So, leave this field blank. Use the other fields below it.</li><li><strong>Column: </strong>Select the column you want your bot to look in.</li><li><strong>Value: </strong>Enter the value you’re searching for. In this case, the bot will search for text that matches the user name.</li></ul><p>You bot will log all data in the row that matches the user name. In this example, it will log the user name and email address. You can now use and update this data in your flow.</p><h4>2. Ask a Question</h4><p>The next step is to ask the user if the email address you have on record is correct.</p><ol><li>In your flow, add an action. Select <strong>Bot → Ask a Question</strong>, and click <strong>Next.</strong></li><li>In the <strong>Question</strong> field, ask the user to verify the email address on record. Use the output from the <strong>Get a Row </strong>action, and tell your bot to show the data that is in the <strong>Email</strong> column:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*lKeLa8QJ5GAFmIi4PrUcqg.png" /></figure><p>Now, add a filter so that this action will only run if the <strong>Search Rows </strong>action you set up earlier returns a match:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*NmImjggcDx5fK-6Fm_jfjA.png" /></figure><p>The user can signal whether the email address you have is correct.</p><h4>3. Ask for the Correct Email</h4><p>If the user signals that the email address is incorrect, you need to ask for the correct email:</p><ol><li>In your flow, add an action. Select <strong>Bot → Ask a Question</strong>, and click <strong>Next.</strong></li><li>Ask your user to enter the correct email address. Remember to set <strong>Validation </strong>to <strong>Email Address</strong>. Click <strong>Next</strong>.</li><li>Create a filter that will only run if the user answers “No” to the previous question. Then click <strong>Next </strong>and save the action:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*nEzO1dvwRr_-n1_-uNIm3Q.png" /></figure><p>Now you have the correct email address. You’ll use the output from this action in the last step.</p><h4>4. Update a Row</h4><p>Finally, your bot can update a row with the new email address.</p><ol><li>In your flow, add an action. Select <strong>Google Sheets → Update a Row.</strong></li><li>In the Settings window, tell your bot to look the row that you logged with the <strong>Get a Row</strong> action. Then specify what data to put in each column:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*vAwbocYhUooijOrr_9qY1Q.png" /></figure><ul><li><strong>Spreadsheet and Worksheet: </strong>Select the same spreadsheet and worksheet you used for the <strong>Get a Row</strong> action.</li><li><strong>Row ID: </strong>Tell your bot to use the same Row ID as the row that you logged with the <strong>Get a Row </strong>action.</li><li><strong>Name: </strong>Keep the original value in the <strong>Name </strong>column. Use the value that you logged with the <strong>Get a Row </strong>action.</li><li><strong>Email: </strong>Update the <strong>Email </strong>column with the output from your last question. This will update the spreadsheet with the new email address.</li></ul><p>Add a filter to this action as well. It should only run if the user answers your request for a new email address:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*NsfnQBr19JiFvZxxV3w_Zw.png" /></figure><p>Now your bot can verify and update an email address.</p><h3>Conclusion</h3><p>In this tutorial, you learned how to use Flow XO with Google Sheets. We covered the basics of reading and editing a spreadsheet, as well as using spreadsheet data in your flow. You can use Google Sheets with even more Flow XO features, like cards, attributes, and flow triggers.</p><p>To continue this tutorial on Google Sheets and learn more great ways to use Google Sheets with Flow XO, <a href="https://medium.com/flowxo/using-google-sheets-in-flow-xo-part-2-6936675c769e">head over to part 2</a>.</p><p><strong>Want to find out more? We have full documentation for </strong><a href="https://support.flowxo.com/article/35-google-sheets"><strong>Google Sheets</strong></a><strong> and other features in Flow XO over at our </strong><a href="https://support.flowxo.com/"><strong>Help Center</strong></a><strong>, or get help &amp; advice from other Flow XO users on the </strong><a href="https://community.flowxo.com/"><strong>Community Site</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4535d904514f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flowxo/using-google-sheets-in-flow-xo-4535d904514f">Using Google Sheets in Flow XO</a> was originally published in <a href="https://medium.com/flowxo">Flow XO</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Attributes in Flow XO]]></title>
            <link>https://medium.com/flowxo/attributes-in-flow-xo-5189eefd8d01?source=rss-a768dc5ef938------2</link>
            <guid isPermaLink="false">https://medium.com/p/5189eefd8d01</guid>
            <category><![CDATA[messenger-bots]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[facebook-messenger]]></category>
            <category><![CDATA[bots]]></category>
            <dc:creator><![CDATA[Lydia Husser]]></dc:creator>
            <pubDate>Wed, 15 Mar 2017 10:07:19 GMT</pubDate>
            <atom:updated>2017-03-15T10:07:19.219Z</atom:updated>
            <content:encoded><![CDATA[<p>Attributes are a powerful feature in Flow XO. You can use attributes to store information, then access it later. Attributes are useful if you want your chatbot to do things like remember who the user is, complete an order, tabulate a response, or just give a personal greeting.</p><p><strong>If you don’t already have a free Flow XO account, </strong><a href="https://flowxo.com/app/signup"><strong>get yours now</strong></a><strong>.</strong></p><p>Attributes gather data, either actively, from direct user input, or passively, like counting how many time a user has accessed a flow. Your chatbot can use the same attributes across multiple flows.</p><p>For example, you might have a chatbot that recommends a song based on the user’s preferred genre and mood. When the user comes back for more, your chatbot will have this information on hand, and can make more recommendations. Or, the user can change their preferences if they want to hear something different.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*B8BTHzle9VqCmsqVBDj3Kw.png" /></figure><h3>Attribute Basics</h3><p>Each attribute in your flow has a name and a value. One way to use attributes is to set the name, and later ask the user for a value. Your chatbot will store this as a <strong>name: value</strong> pair. For example:</p><ul><li><strong>genre: </strong>heavy metal</li><li><strong>mood: </strong>happy</li></ul><p>In the above example, the attribute names in your flow are <strong>genre</strong> and <strong>mood</strong>. The user-input values are <strong>heavy metal</strong>, and <strong>happy</strong>.</p><p>You can use this data in your flow to greet the user, then recommend a song.</p><h3>Set an Attribute</h3><p>Use <strong>Set an Attribute</strong> to establish an attribute name and assign a value. The value is the output from an action in your flow. This can be either active or passive data from the user.</p><p>Here’s how to set this up in Flow XO:</p><ol><li>In your flow, ask for the user’s preferred genre, and mood. For each of these actions, select <strong>Bot → Ask a Question</strong>.</li><li>Now store each piece of data in an attribute. To do this, add a new action in your flow, and select <strong>Attributes </strong>in the <strong>Choose a Service</strong> window.</li><li>Select <strong>Set an Attribute </strong>for your action and click <strong>Next</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*_ZNWFcwK8l9rBZsfKN-0iQ.png" /></figure><p>Now add your attributes in the <strong>Settings</strong> window.</p><ol><li>Click <strong>+ Add </strong>to add a new attribute.</li><li>In the <strong>Name</strong> field, enter the name you want to give to the attribute, like “<strong>genre</strong>”.</li><li>In the <strong>Value</strong> field, enter the output that you want to use as the attribute value. For example, the value for <strong>genre</strong> should be the answer to your question, “What genre do you like?” So, the Value field might look like “{{what_genre_do_you_like.parsed_answer}}”.</li><li>Follow the same steps to set the attribute for <strong>mood</strong>.</li></ol><p>The <strong>Attributes </strong>list should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*RPcAJq7mnXbiDJlGHDDQwQ.png" /></figure><p>Click <strong>Next </strong>to continue.</p><p>When the user runs your chatbot, it will log the attribute values at this point in the flow. Your chatbot logs input data that is sent from the user to the bot. The log for attributes looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*4NPlpZvdFwoURzkC8FPRpw.png" /></figure><p>After you set an attribute, you can retrieve the information to use it in your flow.</p><h3>Use an Attribute in a Flow</h3><p>Once you have set an attribute, you can use it anywhere in your flow. You chatbot will use the attribute values logged in the input data .</p><p>At this point, we have stored the genre and mood. If you want use these values in a message, you can set up an action like this:</p><ol><li>In your flow, add a <strong>Bot </strong>to <strong>Send a Message</strong>.</li><li>Start typing your message.</li><li>In the place you want to display the genre, type <strong>{{</strong>. Then select <strong>Attributes { }</strong> in the drop-down.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/1*h7irI5t6ZyBDGjqVGTE1Nw.png" /></figure><p>Type the <em>exact</em> attribute name that you want to retrieve and press <strong>Enter. </strong>In this case, type “<strong>genre</strong>”, to mach the attribute that you created earlier:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*OE95neWhHeGg0u-P9eLVZg.png" /></figure><p>Follow the same process to retrieve the <strong>mood </strong>attribute. The completed message will look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*lCZ1UqmKV7ofaVLvkXX1GA.png" /></figure><p>Your chatbot will replace “{{music_recommendations.attributes__genre}}” with the value stored in the <strong>genre </strong>attribute. It will do the same for <strong>mood</strong>.</p><p>So, if your user enters “heavy metal” and “happy”, your chatbot will send the message:</p><p>“You like heavy metal and you’re feeling happy. Here’s a song I think you’ll like!”</p><h3>Update an Attribute</h3><p>To update an attribute with a new value, use <strong>Set Attribute</strong> again.</p><p>A user may want to change the genre or mood the next time they visit your chatbot. If so, you can <strong>Set an Attribute </strong>again to update those values. The new value will overwrite the previous value.</p><ul><li>Make sure to match the name of the attribute you are overwriting. For instance, to overwrite the value for <strong>mood</strong>, you must use the same attribute name, <strong>mood</strong>.</li><li>To completely reset an attribute, leave the Value empty.</li></ul><h3>Using Filters with Attributes</h3><p>Another good way to use attributes is to filter an action in your flow based on an attribute value.</p><p>For example, you can have your chatbot send one message if the user is happy, but a different message if the user is sad. You can do this with a filter that checks the <strong>mood </strong>attribute you set earlier.</p><p>First, create a message that your chatbot will only send if the user’s <strong>mood </strong>is <strong>happy</strong>.</p><ol><li>Add an action in your flow. Use a <strong>Bot</strong> to <strong>Send a Message</strong>.</li><li>Type your message for a happy user and click <strong>Next</strong>.</li><li>On the Filters page, click <strong>+ Add a Filter</strong>.</li><li>Set the <strong>Value </strong>to your <strong>mood </strong>attribute.</li><li>Set the <strong>Condition</strong> to <strong>Equals</strong>.</li><li>Set the second <strong>Value</strong> to “happy”. You filter will look something like this:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*a7z2PvpG1wg0d-AFj8VKRw.png" /></figure><p>This action will only run if the <strong>mood </strong>attribute has the value <strong>happy</strong>. To send a different message to a sad user, follow the same steps, but check for the value <strong>sad </strong>instead.</p><h3>Increment an Attribute</h3><p>You can increment the value of numeric attributes with +<em>n</em> or -<em>n</em>. This is useful for tracking patterns, like how many times a user has visited your chatbot or given a certain response.</p><p>Say the user also likes blues music. If your user has played one blues song, you’ll want to give them a different song the next time they pick the genre.</p><p>One way to change the song is by tracking how many times the user triggers your blues flow. Here’s how you can do this with attributes:</p><ol><li>Set up a new flow for the blues genre.</li><li>Immediately after the trigger, add a new action and <strong>Set an Attribute.</strong></li><li>Give the attribute a logical <strong>Name</strong>, like <strong>blues.</strong></li><li>Set the <strong>Value</strong> to <strong>+1. </strong>Each time the user triggers this flow, the value for the <strong>blues </strong>attribute will increment by 1. By default, the starting value is 0.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*IlC8AgtL8GpgmJ0MgkfqUQ.png" /></figure><p>Now that you’ve set up your incremental attribute, you need to tell your chatbot to log the value. To do this, use <strong>Get an Attribute</strong>.</p><h4>Get an Attribute</h4><p>Use <strong>Get an Attribute</strong> after you set an incremental attribute. This feature logs the new attribute value each time the counter goes up. It prevents your counter from resetting to 0.</p><blockquote><strong>Note: </strong>It’s usually unnecessary to use <strong>Get an Attribute</strong> because attributes are included in the data you receive when a message comes in to your bot.</blockquote><blockquote>You may still need to Get an Attribute if the attribute value may have changed during the flow (like when you increment a value).</blockquote><p>To get an attribute:</p><ol><li>Add a new action in your flow.</li><li>Select <strong>Attributes → Get an Attribute</strong>, and click <strong>Next</strong>.</li><li>Type the exact attribute name that you want to log. In this case, <strong>blues</strong>:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*xJjXyaQX1XNRUBxWGUePVw.png" /></figure><p>Each time the user runs this flow, the value for <strong>blues</strong> will increment by one. Your chatbot will log each instance. So, if the user triggers this flow three times, the Value in your log will be “3”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*BSeKycSYnI32BQqlP4VvVw.png" /></figure><p>You can use this data in several ways. For example, you can search your external database, cycle songs listed in Google Sheets, or you can trigger new actions in your flow.</p><h3>Conclusion</h3><p>In Flow XO, attributes are an effective way to store and retrieve information. In this tutorial, you learned what attributes are, how to use them in your flow, and how attribute values persist across flows.</p><p>There are endless ways to use attributes in Flow XO. With attributes, users can change their responses so that you can provide service that meets changing requirements. You can track the frequency of a response and adjust output accordingly. You can also store attribute data outside your flow, like in Google Sheets.</p><p><strong>Want to find out more? We have full documentation for </strong><a href="https://support.flowxo.com/article/141-attributes"><strong>Attributes</strong></a><strong> and other features in Flow XO over at our </strong><a href="https://support.flowxo.com/"><strong>Help Center</strong></a><strong>, or get help &amp; advice from other Flow XO users on the </strong><a href="https://community.flowxo.com/"><strong>Community Site</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5189eefd8d01" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flowxo/attributes-in-flow-xo-5189eefd8d01">Attributes in Flow XO</a> was originally published in <a href="https://medium.com/flowxo">Flow XO</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Filters in Flow XO]]></title>
            <link>https://medium.com/flowxo/using-filters-in-flow-xo-777488f8e58f?source=rss-a768dc5ef938------2</link>
            <guid isPermaLink="false">https://medium.com/p/777488f8e58f</guid>
            <category><![CDATA[messaging]]></category>
            <category><![CDATA[facebook-messenger]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[business]]></category>
            <dc:creator><![CDATA[Lydia Husser]]></dc:creator>
            <pubDate>Sun, 05 Mar 2017 21:25:42 GMT</pubDate>
            <atom:updated>2017-03-07T09:18:29.628Z</atom:updated>
            <content:encoded><![CDATA[<p>In Flow XO, filters are a great way to customize how your chatbot responds to user input. In this tutorial, you’ll learn what filters are and some practical ways to use them.</p><p><strong>If you don’t already have a free Flow XO account, </strong><a href="https://flowxo.com/app/signup"><strong>get yours now</strong></a><strong>.</strong></p><p>With filters, your chatbot can account for changeable information. You can respond to input with a tailored action.</p><p>For instance, you might want to make a chatbot that helps users plan a trip. Your chatbot needs to gather information about where and how the user wants to travel. Then it will make recommendations based on this information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*OzzYAnN-JvGTJ6zcnFhZPw.png" /></figure><h3>Filters</h3><p>You might want your trip planning chatbot to recommend a place to stay based on where the user is traveling. You can do this with filters:</p><ol><li>In your flow, Ask a Question to find out where the user wants to go.</li><li>Below that, click <strong>+</strong>, and select <strong>Bot</strong> for your service. Then select <strong>Send a Message </strong>for your action<strong>.</strong></li><li>In your message, respond to a choice the user might make. For instance, if the user wants to go to Africa, list recommendations for places to stay in Africa. Click <strong>Next </strong>to continue.</li><li>Click <strong>+Filter, </strong>and set up a filter to make sure your chatbot will only go to this response if the user answers “Africa”. The empty Filter looks like this:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/0*EK2hVbM16XI8-mS3." /></figure><p>Your filter should look back to your original question, and check for the choice “Africa”. To tell your chatbot to check the answer to your question, the next step is to add a <strong>Value</strong>.</p><h3>Filter Values</h3><p>In the filter window, the <strong>Value</strong> is where you tell your chatbot where to look and what to look for. In this case, you want your chatbot to look in the question you just asked your user (“Where do you want to go?”). To set this up:</p><ol><li>In the <strong>Value</strong> box, type <strong>{{</strong>, and find your question in the drop-down.</li><li>Select the type of user input to check for. In this case, we gave the user a list of choices, so check for a <strong>Choice</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*sqIG0Ce7s8nJQYI7oYdH6Q.png" /></figure><p>Your filter should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*GUM42kDifrsEBcox82QQgg.png" /></figure><p>Now you need to tell your chatbot which choice to look for. To do this, you need to set a <strong>Condition</strong>.</p><h3>Conditions</h3><p>Within a filter, a <strong>Condition</strong> tells your chatbot what to check for when it looks in a Value. Your chatbot will do a filtered action when the Value aligns with the Condition.</p><p>You’ve already told your chatbot to look for the answer to “Where do you want to go?” Now you want your response to display only if the user answers “Africa”.</p><p>In other words, if “Where do you want to go?” <strong>Equals</strong> “Africa” your chatbot should use this response. So, set your Condition to <strong>Equals</strong>.</p><p>The Condition <strong>Equals</strong> requires a second Value<strong>. </strong>Here is where you tell your chatbot what choice to look for, in this case “Africa”. Your filter will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*mu844Yhkv_flTq9sTGbrvw.png" /></figure><p>This response will only display if the user answers your question with “Africa”. Click <strong>Next, </strong>then <strong>Save</strong> to finish the response.</p><h3>Filters with Multiple Conditions</h3><p>To make your responses even more useful, you can gather several pieces of data from the user. You can then use filters with multiple conditions to respond with what the user is looking for.</p><p>At this point, you’ve asked your user where they want to go. Now you want to make travel recommendations based on where they are coming from. To set this up:</p><ol><li>In your flow, Ask a Question to find out where the user is traveling from.</li><li>Send a Message based on a possible answer from the user. For instance, the user might be traveling from Asia to Africa. When you’ve added your message, click <strong>Next</strong>.</li><li>Click <strong>+ Filter</strong>.</li></ol><p>Now you need to create a filter that will only display this response if the user is traveling from Asia to Africa. Because you want to match the output from two questions, you need to use the <strong>And </strong>condition in your filter.</p><h3>Using the And Condition</h3><p>The <strong>And </strong>condition tells your bot to match everything inside a group. In the Filters window, a group is a set of values and conditions surrounded by a gray box.</p><p>In this case, your filter should match <em>both </em>of these choices:</p><ul><li>Where do you want to go? = Africa, <strong>And</strong></li><li>Where are you traveling from? = Asia</li></ul><p>Set the first <strong>Value </strong>and <strong>Condition. </strong>This will look the same as the filter you made earlier:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*mu844Yhkv_flTq9sTGbrvw.png" /></figure><p>Now, click <strong>+AND</strong>. This will display an empty Value and Condition<strong>. </strong>Tell your bot to look in the question “Where are you traveling from?” and check if it equals “Asia”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*ggcaVy-n3w3r-uI5Nr4Pfw.png" /></figure><p>You can use add more And conditions if you need to.</p><blockquote><strong>Note: </strong>When using <strong>And</strong>, avoid using two Values that can’t be true at the same time. For instance, the answer to “Where are you traveling from?” can’t be “Asia” and “Australia” at the same time.</blockquote><h3>Using the Or Condition</h3><p>Use the <strong>Or </strong>condition when you want to respond in the same way to different user input.</p><p>For example, you might want to recommend the same mode of transportation if the user is going to Africa from Asia, or to Asia from Africa. In other words:</p><ul><li>Where do you want to go? = Africa, <strong>And</strong></li><li>Where are you traveling from? = Asia</li></ul><p><strong>Or</strong></p><ul><li>Where do you want to go? = Asia, <strong>And</strong></li><li>Where are you traveling from? = Africa</li></ul><p>Instead of creating a new message, you can reuse the existing message by adding an <strong>Or</strong> condition. Click <strong>+ OR</strong>, then add your values.</p><p>The whole filter should look like this. Note that each <strong>Or </strong>condition is in a separate gray box:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*CZPXgd13cdA60nXCBuYF4w.png" /></figure><h3>Filtering Numbers</h3><p>Filters can account for nearly any kind of user input. It’s often useful to gather numbers from users. You can set you filter to check a numerical value.</p><p>For example, you might have a special rate for groups of 5 or more people. Find out how many people the user is traveling with, and offer the large group rate if it applies. To do this:</p><ol><li>Ask a Question to find out how many people are traveling. Set <strong>Validation</strong> to <strong>Integer</strong>. This will tell your chatbot to expect a number from the user.</li><li>Create a response to offer the large group rate. Set your filter to check for a number greater than or equal to 5.</li></ol><p>Your filter will look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*Ajj8Hhg1V16lOvR1jObQMA.png" /></figure><p>If the user is traveling in a group of 5 or more people, your chatbot will offer the large group rate. If the group is smaller, the chatbot will move on to the next action.</p><h3>Stop the Rest of the Flow</h3><p>You may have noticed this checkbox at the bottom of the Filters page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/439/1*rw64tFbb0YKz8lIkO7SO3w.png" /></figure><p>Check this box to tell your chatbot to stop the flow after it does the current action. This is useful if the action will meet the user’s needs, but your flow continues for users with other needs.</p><p>For instance, a user might indicate that they are not ready to make travel reservations. You can end the flow there, while continuing it for users who are ready.</p><h3>Use a Filter on a Trigger</h3><p>In the above examples, you placed each filter on an <strong>action </strong>within the flow. Your chatbot will only do the action if conditions are met.</p><p>You can also place a filter on a <strong>trigger</strong>. The difference is that your chatbot will only start the <em>flow </em>if conditions are met. Also, instead of checking the output from previous actions, you can only filter output from the trigger itself.</p><p>You might have a Google Sheet with deals for certain destinations. You can set up a new flow that only triggers if your user sets the destination to “Spain”, for instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*BkFAFsO41x3D7u04kkJVOQ.png" /></figure><p>Follow these steps:</p><ol><li>Set up your Google Sheet of holiday deals.</li><li>Go to the <strong>Flows </strong>page and click <strong>+ New Flow</strong>.</li><li>Set up a flow with a Google Sheets <strong>New Row </strong>trigger.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*nE6fwATheUbKqiOBiyi5NQ.png" /></figure><p>Now set up your filter:</p><ol><li>On the Filters<strong> </strong>page, click <strong>+ Add a Filter</strong>.</li><li>Make a filter that looks for the row “Spain” in your Google Sheet.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*TxvJfShgPfWj_ppNFqB6LA.png" /></figure><p>The whole flow will only trigger if the “destination” field in the Google Sheet contains “Spain”.</p><h3>Conclusion</h3><p>In this tutorial, you’ve learned how to use filters to look back to an action and check for specific values. You also learned how to use And/Or conditions, account for variable numbers, and use a filter on a trigger.</p><p>Flow XO offers even more ways to customize your responses. You can gather and filter data like date &amp; time, contact information, age, and budget. Then you can set up your chatbot to book an entire trip!</p><p><strong>Want to find out more? We have full documentation for </strong><a href="https://support.flowxo.com/article/31-filters"><strong>Filters</strong></a><strong> and other features in Flow XO over at our </strong><a href="https://support.flowxo.com/"><strong>Help Center</strong></a><strong>, or get help &amp; advice from other Flow XO users on the </strong><a href="https://community.flowxo.com/"><strong>Community Site</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=777488f8e58f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flowxo/using-filters-in-flow-xo-777488f8e58f">Using Filters in Flow XO</a> was originally published in <a href="https://medium.com/flowxo">Flow XO</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Get Started with Flow XO]]></title>
            <link>https://medium.com/flowxo/get-started-with-flow-xo-747eb1f6f97b?source=rss-a768dc5ef938------2</link>
            <guid isPermaLink="false">https://medium.com/p/747eb1f6f97b</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[messaging]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[facebook-messenger]]></category>
            <dc:creator><![CDATA[Lydia Husser]]></dc:creator>
            <pubDate>Tue, 28 Feb 2017 13:33:46 GMT</pubDate>
            <atom:updated>2017-02-28T13:42:14.355Z</atom:updated>
            <content:encoded><![CDATA[<p>Flow XO offers numerous features to build, host, and manage chatbots for social platforms. This tutorial will help you with some of the basics of Flow XO. You’ll learn how to ask your user a question, then respond depending on the answer. You’ll also learn how to test your chatbot in Facebook Messenger.</p><p><strong>If you don’t already have a free Flow XO account, </strong><a href="https://flowxo.com/app/signup"><strong>get yours now</strong></a><strong>.</strong></p><p>Let’s say you offer a prepaid phone service. Your customers usually have questions about billing or tech support. You can create a chatbot in Flow XO that will direct your customers to the type of product support they need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*qi5P39iI94Q8ej3Yh6j9dQ.png" /></figure><h3>Create a Bot for Facebook Messenger</h3><p>First, you’ll need to create a bot and add it to Facebook Messenger. In Flow XO, a bot is what users interact with. Later, you’ll create a flow that tells your bot how to respond to user input.</p><p>Before you create a bot:</p><ol><li>Sign in to Facebook. If you don’t have an account, create one.</li><li>Create a Facebook Page. This Page is where users can access your chatbot.</li></ol><p>Next, create a bot in Flow XO.</p><ol><li>Sign into Flow XO. Open the editor to the <strong>Bots</strong> page.</li><li>Click <strong>+ New Bot</strong>, and select <strong>Messenger</strong> in the Choose a Platform window.</li><li>Give your bot a descriptive <strong>Name</strong>.</li><li>Leave the <strong>Welcome Text </strong>blank for now.</li><li>Click <strong>Login to Facebook</strong>, and let Flow XO view your Pages.</li><li>The Create a Bot window should now have a <strong>Facebook Page</strong> menu. Select your page in the drop-down list.</li><li>The window should look something like this. Click <strong>Next </strong>to continue.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*t4Jo8htjCEaQpoWLfL5aMQ.png" /></figure><p>Now, test your bot. Click <strong>Message Us</strong> in the Test &amp; Distribute window. This will take you to Facebook Messenger where you can try your new chatbot.</p><p>At this point, you’ll see a greeting, and nothing else. To interact with users, your bot needs a flow.</p><h3>Create a New Flow</h3><p>In Flow XO, a flow is a message or action that your chatbot responds to. In this tutorial, you’ll create a flow that asks the user a question and responds depending on their answer.</p><p>You can create your own flow or install the shared <a href="https://flowxo.com/share/5nj6edr6">Product Support</a> flow.</p><p>To set up a new flow:</p><ol><li>Open the Flow XO editor to the <strong>Flows</strong> page.</li><li>Click <strong>+ New Flow</strong>.</li><li>Select <strong>Blank Flow</strong> in the Templates window.</li><li>Give your flow a descriptive title.</li></ol><h3>Set Up a Trigger</h3><p>Every flow starts with a trigger. A trigger tells the chatbot what user input to listen for. Your flow will begin when the user’s input matches the trigger.</p><p>For example, a user could type, “I have a question about my bill”. If this matches the trigger, your bot will start the flow. Or, you could give the user a button to press that will trigger the flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*xn5yww185L5zfoimD8WEeA.png" /></figure><p>To set up a trigger for your flow:</p><ol><li>Click <strong>+</strong> to create a trigger.</li><li>Select <strong>Bot</strong> in the Choose a Service window.</li><li>Select <strong>New Message</strong> as your Trigger.</li></ol><p>The New Message window displays options for your trigger. Here, you can tell your bot when to start the flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*pxGRHg6O6zSk6oTh4gzCVg.png" /></figure><ul><li><strong>Which bots should listen?: </strong>Select which active bots should listen for the trigger. For now, select <strong>All bots should listen</strong>.</li><li><strong>Words or Phrases:</strong> Enter some text that a user can type to trigger a flow. Add one word or phrase per line.</li><li><strong>Message Types:</strong> This tells your bot which messages to listen to.</li><li><strong>Show a Shortcut Button?:</strong> Create an optional button that will trigger the flow. For this tutorial, select <strong>Yes</strong>. The first line under <strong>Words or Phrases</strong> will be your button text.</li><li><strong>Additional Welcome Text: </strong>An optional field. Type some text to help users get started.</li></ul><p>When you’re done with the New Message form:</p><ol><li>Click <strong>Next</strong> at the bottom of the New Message window.</li><li>Click <strong>Next </strong>again in the Filter window. There’s no need to add a filter yet.</li><li>Give your trigger a descriptive <strong>Name</strong>.</li><li>Click <strong>Save</strong> to finish the trigger. You can edit it later if you need to.</li></ol><blockquote><strong>Note:</strong> It’s a good idea give every action in your flow a clear name so that you find it later. The name you choose will display on the Flows page. It will also help you when you need to refer back to it from other actions.</blockquote><h3>Ask a Question</h3><p>Now that you have initiated a flow, your bot can ask a question.</p><ol><li>On the Flow page, click <strong>+</strong> to add a task.</li><li>Click <strong>Bot</strong> in the Choose a Service window.</li><li>For your action, select <strong>Ask a Question</strong>.</li></ol><p>The Ask a Question window has several options:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*L0cXTWhAn8iDPFX1_IL58w.png" /></figure><ul><li><strong>Response Path:</strong> Select your trigger. If you didn’t name your trigger, it will display as <strong>New Message</strong> in the drop-down.</li><li><strong>Question Type:</strong> The type of question you’re asking. For this tutorial, select <strong>Choice</strong> to give the user a list of options.</li><li><strong>Question: </strong>Ask the user a question.</li><li><strong>Choices:</strong> Enter choices that the user can select. Click <strong>+ Add</strong> to add more choices. Leave the Value field empty.</li><li><strong>Set Reminder:</strong> Set this to <strong>Yes</strong>.</li><li><strong>Notify on Expiry:</strong> Set this to <strong>Yes</strong>.</li><li><strong>Skip Question:</strong> Set this to <strong>No</strong>.</li></ul><p>When you’re done with the Ask a Question form:</p><ol><li>Click <strong>Next </strong>at the bottom of the Ask a Question window.</li><li>Click <strong>Next </strong>again in the Filter window.</li><li>Give your question a descriptive <strong>Name</strong>.</li><li>Click <strong>Save </strong>to finish the question.</li></ol><h3>Respond to an Answer</h3><p>Next, respond to the user’s choice. Once again, set up your flow:</p><ol><li>On the Flow page, click <strong>+</strong> to add a task.</li><li>Click <strong>Bot</strong> in the Choose a Service window.</li><li>For your action, select <strong>Send a Message</strong>.</li></ol><p>Complete the Send a Message window and click <strong>Next</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*pDpJW-DVaT47OcRIpj-CaQ.png" /></figure><h3>Add a Filter</h3><p>Next, set up a Filter to tell your bot which choice will activate the response. In this case, we want “tech support” to activate the response, “I can help you with your tech support question!”</p><p>Click <strong>+ Add a Filter</strong> in the Filter window, and enter your conditions.</p><p>Tell your bot which message to look in and what conditions to check for:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*anGLEOAmSOT7m0XXew4SpA.png" /></figure><ol><li>In the <strong>Output </strong>field, type <strong>{{</strong> for a drop-down list. Find your question, and select <strong>Choice </strong>below it.<strong> </strong>This inserts the path to your question in the Output field.</li><li>Set <strong>Condition</strong> to <strong>Equals</strong>.</li><li>Set the <strong>Value</strong> to “tech support”.</li></ol><p>This response will only display when the user selects “tech support”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*JbtDIrmfishfs9Lvz3M-2w.png" /></figure><p>Click <strong>Next</strong> when your filter is done. This response will display in your flow.</p><h3>Copy a Response</h3><p>Now you need a similar response to the second option, in this case, “billing”. Instead of creating an entirely new message, you can copy the previous response and edit it. This is a quick way to build flows with several similar actions.</p><p>To copy the previous response:</p><ol><li>In your flow, find the response to “tech support” that you just created.</li><li>Click the drop-down menu next to Edit, and select <strong>Copy</strong>. This will copy the entire message, including the filter.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*_fUP8_6VPUo2j9IRl1QI-w.png" /></figure><p>Now you can edit the flow. This second response should correspond to the second choice, “billing”. So, edit the Message and Filter accordingly.</p><p>You now have a functional flow. Set your new flow to <strong>On</strong>.</p><h3>Test Your Finished Bot</h3><p>Now that your flow is done, you can interact with it in Facebook Messenger. To do this:</p><ol><li>Go to the <strong>Bots </strong>page in the Flow XO editor.</li><li>Click the bot you created earlier.</li><li>If you need to, click <strong>Login to Facebook</strong>, and select your Facebook Page. Click <strong>Next</strong>.</li><li>Click <strong>Message Us</strong> to test your bot. You should be able to interact with it.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*qi5P39iI94Q8ej3Yh6j9dQ.png" /></figure><p>Your basic chatbot is done. You can use more features in Flow XO to build on your bot. It can ask text questions, respond to variable answers, and even send the chat to a human. You can also put your flow on multiple platforms to answer user questions wherever they look for you.</p><p>Want to find out more? We have full documentation for all the features in Flow XO over at our <a href="https://support.flowxo.com/">Help Center</a>, or get help &amp; advice from other Flow XO users on the <a href="https://community.flowxo.com/">Community Site</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=747eb1f6f97b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flowxo/get-started-with-flow-xo-747eb1f6f97b">Get Started with Flow XO</a> was originally published in <a href="https://medium.com/flowxo">Flow XO</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>