Inspiration

Chat bots are creating more common nowadays, but it is difficult to create for small business owners. Easing the creation process will proliferate the use of chat bots for business owners.

What it does

Shop owners create a product with corresponding details such as shipping, material, brand. When the user asks about it in messenger, the corresponding information is replied.

After creating ad post on Facebook, the owner can also create a product reference (e.g black pants for product name "a very large black pants") so that when user comment on the post with the reference (e.g "how much is the black pants") the correct information is replied

How I built it

When a webhook is called from Facebook, the content is passed to wit.ai and the intent is retrieved. The item name is identified and the detail is retrieved. Then, based on the type of question (what, how much, how long) the appropriate reply is sent back. For comment handling, because there is a context of a post, when the user asks about a generic item (one that does not have a full item name), the generic name is compared against a list of user-defined references and the corresponding info is retrieved. When an item is found, it also sets a context variable so that user can refer to it in the following questions

Challenges I ran into

Facebook app reviewing process. Integrating sails js with reactjs.

Accomplishments that I'm proud of

Everything

What I learned

How to build a chat bot. Wit ai api. Facebook graph api. Sails js

What's next for Chatbot

Generic questions (not related to any product)

Share this project:

Updates