Git Product home page Git Product logo

coffee-chatbot's Introduction

coffee-chatbot

I created a python chatbot that Starbucks users can text to place an order + help cut wait time of a normal coffee.

intention: Current wait time @Starbucks is 4.5 minutes. With the chatbot, it can be ~ 1.5 minutes (2.4x faster).

features(current): users can choose size, plastic or personal cup, type of drink, milk w/drink.

features (future): users will order products other than coffee, leave a tip through chatbot, schedule a specific pick-up time, reserve a seat on location, etc.

market-market scale (verticalization): e-commerce companies like amazon or brick-and-mortar like costco can add this offering. I can increase the feature possibilities on the chatbot so if an Amazon user wants to see an image/video of a product, that can be sent through text.

code-walkthrough-key-concepts

functions: I used nested + normal functions in this chatbot. Most of the functions had no parameters but had input, conditionals with calls/returns.

conditionals: I used conditionals & dialog trees frequently in this chatbot. Line 3 - 11 is the first example. Users are making decisions based on the options available to them. If, else, elif are the computers way of taking their input "decision" data and feeding new options based on their choice. We can have a conversation with the user w/this method.

input: I used the input command when I wanted the user to give me new information. Line 2 is one example.

return: I used return when I wanted the code to give a response vs. running through its sub-routine of reviewing code + moving into following steps.

recursion: I learned that this is when a function calls itself. Line 11 is an example of this. The function is calling itself.

string concatenation: I used string concatenation to connect variables to strings, forming a sentence for the user.

coffee-chatbot's People

Contributors

zaynpatel avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.