Back to Parent

Outcome


Intention

Remy is a chef-bot who believes that everyone can cook and you are what you eat. Therefore, he is eager to share his favorite recipes with others. He is also happy to tell you about his legendary story if you are curious. 

Context

Inspired by the cartoon "Ratatouille," I wanted to build a recipe bot that adopts the main character's rat-alities. I took advantage of Remy's characteristics and hobbies depicted in the movie. For example, he adopts a mindset that good food makes a person happy. Therefore, the bot I designed reflects that value and advocates for the importance of eating well. When I was crafting "facts" for the bot, I also referred to his lines in the movie. 

Process

In order to set the tone for my bot, I went back to watch the movie "Ratatouille" again and I took snapshots when Remy, the main character, spoke in order to study his beliefs and characteristics. After getting a good idea of what my bot sounds like, I created a flowchart that helps me understand what my ruby code should do. 

Reflection

Updates - Sep 25: Remy's recipe library expands! I improved the code so that now a user can type in any ingredient keyword and Remy will be able to provide the user with a secret recipe! This requires me to write a method for the parameter food (whatever ingredient a user types in).  In order for this to work, I have to first clean up the string a user writes. The bot looks for keyword "search for," for example, "search for chicken." After it detects the string that contains "search for," it will scrap the two words "search for," and uses the remaining keyword, which is the ingredient to search through API. The code is shown below: 

food = body.gsub!("search for ", "")

message, media = recipes( food )

I also redesigned the dialog flow so that the conversation starts more naturally with "How are you doing today?" 

--------------------------------------------------

Sep 24: Right now the Remy bot can only share one Ratatouille recipe with others. Eventually, I want him to be able to share any recipe based on the ingredient a user texts. I would love the conversation to be more dynamic and natural. For example, instead of typing a keyword to trigger the bot's response, I want the user to be able to express in a way he/she usually does. For the next round of improvement, I also want to incorporate rich media, such as GIF into the conversation. 

--------------------------------------------------

Updated iteration of the bot (screenshots below)

Screenshot 20180925 145716
Show Advanced Options
Screenshot 20180925 145942
Show Advanced Options
Screenshot 20180925 150116
Show Advanced Options
Screenshot 20180925 150306
Show Advanced Options

1st iteration of the bot (screenshots below)

Screenshot 20180923 234229
Show Advanced Options
Screenshot 20180923 234301
Show Advanced Options
Screenshot 20180923 234413
Show Advanced Options
Screen shot 2018 09 12 at 11.35.32 am
Show Advanced Options
Drop files here or click to select

You can upload files of up to 20MB using this form.