When ChatGPT met AWS Serverless

Debasis Rath
AWS Tip
Published in
4 min readNov 12, 2023

--

Cafe Chatista : The Ultimate Coffee Ordering Bot

Welcome to the Future of Coffee Ordering

In today’s fast-paced world, convenience is king, and what’s more convenient than a bot that understands your coffee cravings? Meet Cafe Chatista, the innovative coffee ordering assistant that’s transforming how we indulge in our daily caffeine fix. Imagine you have a very simple cafe which operates on a fixed menu, has only one roaster and the roasters prepares orders one by one with in 20secs.

As a demo workflow lets say this can be achieved using 2 APIs :

  1. Check if the roaster is busy.
  2. If yes , ask user to wait else place the coffee order

Here is a detailed video of my experience:

Lets understand more about this coffee ordering agent.

Understanding Cafe Chatista

Cafe Chatista is more than just a chatbot; it’s a specialized assistant designed to enhance your coffee experience. Its primary role is to make ordering coffee not just convenient but also delightful. From recommending the perfect espresso-based drink from the menu to understanding your unique preferences, Cafe Chatista does it all.

Key Features That Make Cafe Chatista Stand Out

Personalized Coffee Recommendations: Start your interaction with Cafe Chatista by getting personalized coffee drink suggestions. Whether you prefer a strong shot of espresso or a creamy latte, the bot tailors its recommendations to suit your taste. I have uploaded a menu into the bot that helps the bot only recommend the items from the menu.

Detailed Order Collection: Once your preferences are known, Cafe Chatista carefully collects all the details of your order. This includes your name and specific choices, ensuring that your order is exactly as you want it. You can define set of natural language rules to probe till the bot gets all data.

Real-Time Roaster Availability Check: Utilizing the power of Zapier GET action, Cafe Chatista checks the availability of the coffee roaster in real-time by querying the backend system running on Amazon API Gateway. Zapier webhooks are easier to create, you just have to make sure you have “Zapier” plugin installed on ChatGPT.

Capabilities and Actions can be defined in this section of the bot configuration:

These zapier actions are easier to create and simple to define. For example here is the POST API

Before that You must create an account in Zapier and build your actions. Learn more about it here: https://actions.zapier.com/docs/platform/gpt. Once the actions are created you can see it in the zapier console :

Once actions are set you are ready ChatGPT can automatically pick up the actions for you ask chatGpt what actions are available and thats it.

Seamless Order Placement: If the roaster is available, Cafe Chatista places your order using a Zapier POST action. Your preferences are sent as a JSON payload, ensuring accuracy and efficiency. Just another API Call.

Instant Order Confirmation: As soon as your order is placed, you receive a confirmation. You’ll know exactly when your coffee is being prepared.

Error Handling and Customer Satisfaction: Should there be any delays or issues, Cafe Chatista is programmed to inform you promptly and offer alternatives to ensure you’re never without your coffee.

And thats it .. Your agent is ready to work for you :)

“But .. Accuracy and security is still to be analyzed”

Conclusion

As we embrace this new technology, Cafe Chatista stands as a testament to innovation in the food and beverage industry. It’s not just about ordering coffee; it’s about experiencing the future of customer service today.

--

--