Skip to content


Repository files navigation


Build Status Coverage Status Maintainability

This bot was built to handle FAQ's for TISLA (The Institute for Student Loan Advice).

TISLA is a 501(c)(3) nonprofit that aims to educate the public about how to deal with student loans and manage your debt. You can find out more about them here

Apparently 40% of people look for advice about student loans on social media; HENCE THIS BOT WAS BORN! The goal of the bot is to simply engage with users on social media who might have questions about managing student debt.

How it works

This is a simple python bot that uses Flask to build a webhook for Facebook's Messenger Bot API. It uses cosine simularity to map a dictionary of input messages to output messages that come with quick replies.

The bot essentially implements a "decision tree" for a conversation about student loans, and links back to TISLA with more free information.

It's built based on this tutorial.

"Callback verification failed"

Facebook Error

The #1 error that gets reported in issues is that facebook returns an error message (like above) when trying to add the heroku endpoint to your facebook chat application.

If you're getting this error, it likely means that you didn't set your heroku config values properly. Run heroku config from the command line within your application and verify that there's a key called VERIFY_TOKEN that has been set, and that it's set to the same value as what you've typed into the window on facebook.

Thank you for reading and feel free to reach out if there's anything I can do.


The world's first student loan chatbot. Sloan uses fuzzy cosine similarity to answer FAQ's about student loans.







No releases published


No packages published