200 Words A Day archive for 2 full years. 731 days of unbroken consecutive days of writing. 7 Dec 2018 - 8 Dec 2020. I now write daily on https://golifelog.com

Re-creating a chatbot without code (6)

[Watch me write a detailed tutorial for building a nocode chatbot using Chatfuel and Airtable. At the end, I’ll share this most parts of this tutorial as a long-form post on maybe Medium or my blog, with a Gumroad payment link for a detailed walk-through complete with images and gifs. An info product in the making.]

Backstory

About two years ago, while on a digital nomad work-vacay in Ubud, Bali, I created a chatbot called Grant Hunt using nocode tools like Chatfuel and Sheet2site. It’s a chatbot that has some conditional logic built in, and helps any grant applicant in the social impact space find a grant for their idea. I remembered working on it all day at Ubud’s lovely cafes, drinking piccolo lattes made from their home-grown beans, then taking breaks in the evenings and weekends to take walks in rice fields or go swim in the beach. It was an awesome work-vacay, and many beautiful memories formed around that project. 

But as a product, the chatbot didn’t do all that well. I loved making things but I was so so green at marketing and distributing it back then (still am now). Some people used it, but it never went viral. Other than a good handful of about 50 people dropping by the bot over the past two years, nothing much happened. After the initial excitement, I kind of forgot about it too.

Fast forward to the recent COVID-19 lockdown. A friend who works at a foundation approached me and suggested that I should try to apply for one of the grants at the foundation to revamp the bot, because some links are broken, and the content dated. There’s also a groundswell of citizen initiatives that’s popped up during the lockdown, so the bot might come in useful for that trend. I dug deeper on my own and observed that there’s an even bigger need right now to help charities and non-profits get all the financial help they can get. Because with COVID, more companies are hunkering down and starting to draw back corporate social responsibility funds. Hard times are a-coming for these corporates and therefore charities. 

Perhaps the Jaeger bot can be revived to fight this Kaiju virus…

Getting the grant

So I decided to give the grant application a shot. Much of the initial research and thinking written in the original blog post are used to convince the funders about the need. I also added in some of the above-mentioned points about how the pandemic had affected charities’ fund-raising.

The scary bit was coming up with the outputs, KPIs and outcomes. I’d never done this before, and what if I over-promise?! Setting this feels pretty much like a stab in the dark, to be honest. What was assuring was that the funder was quite understanding and open to discussion. So, after some research and smart guesstimations, here’s the goals for Grant Hunt for the next three years:

Outputs:

  • 1 chat bot launched within 1 month
  • 1 website launched within 1 month
  • Engage 450 charities/non-profit via cold emails
  • Engage individuals via Facebook ads for 3 years
  • (Assumption is to keep this project going for 3 years for a start. After which a refresh of the resources is required, due to emergence of new grants, outdated links/content, new circumstances)

KPI:

  • Reach at least 1000 subscribers over 3 years

Outcome:

  • Satisfaction survey about chatbot - at least 70% satisfaction.

Aaaand I got it! For someone who’s seldom lucky in giveaways and contests, I felt really lucky and fortunate to get that go-ahead email from The Majurity Trust. Perhaps it wasn’t all luck, perhaps there was something to the idea that made them approve it. Bolstered by the affirmation, I went to work. 

How to build a chatbot without code

Here’s the rough steps on how I built this chatbot with an inventory of ~100 grants:

The research

  • I had to first come up with the flow of questions that the chatbot’s conditional logic will be based on. It depends on your context and industry. For me, they want to find grants, so based on my own experience in the charity sector, grant applicants usually search based on 4 broad factors - entity (individual or organisation), type of funding (for training, programmes or infrastructure), type of social causes (disability, elderly, etc), and any specific funder. These will become the filter categories later on. If you don’t already know this, speak to your users, understand their search process first. 
  • Do you research online and collate all the data items (in this case, grants) into a spreadsheet. In my case I used Airtable, due to their filter mechanisms available, and the card listing view (which I will share more about later). The research entailed going to every funder and foundation I knew and reading their grant objectives and criteria. Very tedious and exhausting. 
  • While reading, I copy and pasted the details I needed into the Airtable spreadsheet – name of grant, funder/foundation name, brief description of grant, URL, image link of organisation logo, and the filters tags that should go under each grant. I created a column for filter tags, and add them to each grant as I went along. This might sound simple, but this took many days for me, as it entailed going through each grant website, looking at the grant objectives and criteria, in order to determine what categories it belongs to, e.g. the grant is for “Organisations” to implement “Services & Programs” that addresses the social cause of “Disability”, etc etc. 
  • After doing the research, you’ll get a good idea of what the broad categories of filters you want. Add more filter categories to the sheet. For example, I added more social causes to the list, like Environment, Sports, Heritage. 
  • Once I was done, I sent the sheet to friends within the sector and asked if I missed out any grants or funds they knew about but wasn’t in the sheet.  

Building the bot

I used Chatfuel for building this nocode chatbot. Here’s the steps:

  • Sign up for an account, using your Facebook account.
  • Go to “Automate” and start building, using their blocks feature. Think of blocks like blocks of code that’s responsible for all the logic and interactions of the chatbot. Within each block, you can “Add Element” (also known as plugins. For simplicity I will just use “element”), like text that the user will see, or an image, gallery, or an element that redirects the user to another group. How Chatfuel works is that the bot will run through all the elements from top to bottom within a block, in that order. You can also create “Groups” of blocks to organize and structure the blocks based on the functions of the chatbot. Everything is click and type, drag and drop. 
  • How I structured my bot: 

— Welcome message, default answer - these are there by default.

— Decision tree - the blocks here contain a series of guiding questions that the chatbot will guide the user through, i.e. the conditions, the conditional part of the “conditional logic” of the bot.

— Routing - routing is logic part of the bot. The blocks here contain all the possible logic pathways based on the conditions that the user had selected. Basically, based on the answers you gave to the guiding questions in the decision tree, the bot will show you different grants. Which grant the bot shows you depends on these routing blocks.

— All grants - the group of blocks is basically the database of the bot. Each block contains just one element - a grant. The bot shows the grant as a gallery image card, with some text below it stating the organisation, and the URL to the grant’s website. The routing blocks will determine what grants are shown to the user. I had to create about 100 blocks each holding one grant for Grant Hunt bot! There might be easier ways like using a Google Sheet and Zapier, but that complicates things a lot more and steepens the learning curve if you’re new to Chatfuel.

— The menu - this group of blocks are like the navigation menu you get on websites (e.g. About, Pricing, Contact). In this case, the menu shows the Directory (shows the Airtable spreadsheet directory), Start over (to begin from the start of the Decision tree again), Feedback (a Google form for feedback and comments), Live chat (a native Chatfuel block for handing over the conversation to live support), Add a grant (another Google form to collect suggestions for grants missing in the Directory), Go to Home (shows the link to the main website).

— Connecting messages - in any chatbot, you got to have connecting messages that bridge between the various groups above. So this is just a basket for messages that the bot will say like “Sorry no results”, “What do you want to do next?”, and some tips on how to use the bot when a user seems stuck.

— Parking lot - this is like a sandbox, for playing around with blocks and elements before you move them into the groups. It’s empty for me.

I’ll go into detail for each group of blocks here:

Welcome message

First add an element/plugin called “Set User Attribute”. Under “User Attribute” set to , and under “Value” set to 0. What this does technically is that it resets the “no results” attributes assigned to a user to zero. Functionally, this reset is closely integrated with the “No results” block, so that the right reply is given to the user based on how many “no results” searches the user had. More about this in detail later. The user does not see this in the chat interface.

Next add a text element below the first one. This text message will be visible to the user in the chat interface. To give the bot some personality, the message is written in first person, as if the bot is addressing the user directly. I used the attribute in the text - what this does is that Chatfuel would extract the first name of the user based on the first name in the user’s Facebook account, and use it to address the user. More personable that way. For guest users, it would be left blank. This is how the message reads like:

? Hi, ! Nice to meet you. ? I’m the Grant Hunt bot, at your service to help you find the grant you need to fund your social service or non-profit programme. ? Let’s run through a few questions first…

Notice that the last sentence leads on to something else, which is the point. After this block, the user would be redirected to a block where the Decision tree begins, and the user gets asked the 4 guiding question.

So after the previous text element, add a “Redirect to Block or Flow” element. In the input field, you’ll have to add the name of the very first block in your Decision tree. For me, it’s “Indiv / Org”. But I haven’t created this block yet, so this is just to illustrate how the blocks connect with other blocks to create an experience of contiguous conversation with the user.

Default answer

As the name implies, this block is a default block that comes with every chatbot on Chatfuel. Basically, this block will fire off every time there’s an input from the user that the bot doesn’t understand. It’s a great catch-all tool, as otherwise you’ll go crazy thinking of all the possible combinations and pathways where the user can go wrong and where you’ll need a position a default answer block.

First, add a text element, and then type out a default answer that best reflects your context and the personality of your bot. Best to frame your default answer in this rough structure:

{Apology}, {Share the error message, why the user can’t do what he just did}, {Share one suggestion or tip to prevent the same thing from happening}.

This is my default answer:

So sorry! Unfortunately, I don’t understand natural human language (yet). Please use the quick reply buttons instead so that I can understand you.

Notice I prompted the user to stick to using the quick reply buttons (those capsule-shaped, prescripted replies above the input field), instead of trying to type their own response.

After the text element, add a Redirect element. As a general rule, you will have to add a Redirect element at the end of every block, so as to connect it to another part of the conversation flow. The blocks are all linked together in a conversation loop, so that’s no block that doesn’t end with a Redirect element. That way, a user wouldn’t hit a dead-end where there’s no reply required or prompted.

To be continued…