Kenzington Bot

Made by MacKenzie Cherban

Found in SMS Bot · UNLISTED (SHOWN IN POOLS)

I wanted to create a bot that is reflective of my personality. Slightly sarcastic with an apologetic nature.

0

Intention

The intention of Kenzington is to share a little bit of information about MacKenzie, a lot of apologies, and a few GIFs. It's not an extensive list of actions, but it hopefully gives you some insight into who MacKenzie is as a human. 

0

Context

The general outcome of questions (who, where, when, why) returns simple information about MacKenzie, but mostly you can enter in random words and get a GIF back. Basically, this is how MacKenzie's mind works, but it's hard spit out Disney related GIFs in real life. 

0

Process

I started out building Kenzington's personality and seeing how she might respond, what she sounds like, even what she looks like. From there, I looked at different conversation flows that may occur. While I had grand plans to incorporate movie quotes and lyrics, I soon realized I needed to scope down and tackle one obstacle at a time. 

0

Product

I incorporated giphy to try and bring some personality through. This was a bit tricky and even slowed things down a bit. I was happy to have gotten the giphy gem to accept two search terms instead of one. I wanted to be able to have Kenzington return a Disney related GIF. To do so, I needed to add "disney" to every search query, no matter what the user texted. To do so, I used the following code...

0
def get_gif

  searchName =  "disney " + " " + params[:Body].to_s
  results = Giphy.search( searchName, {limit: 10})
  gif = nil

  #puts results.to_yaml
  unless results.empty?
    gif = results.sample.fixed_width_downsampled_image.url.to_s
  end

  gif

end
Click to Expand
0

Reflection

Moving forward, I want to continue to iterate and improve this project. I really enjoyed thinking about the conversation that could happen, the question that could be asked, and the random responses that map to my ADHD mind. I feel this project can be greatly improved upon. 

x
Share this Project

This project is only listed in this pool. Be considerate and think twice before sharing.


Found In
Courses

49714 Programming for Online Prototypes

· 15 members

A hands on introduction to building online products and services through code


About

I wanted to create a bot that is reflective of my personality. Slightly sarcastic with an apologetic nature.

Created

September 21st, 2017