Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancing User Experience: Introducing WhatsApp SMS Functionality & AI Assistant example in docs using it #122

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

KartikeyMish
Copy link

@KartikeyMish KartikeyMish commented Sep 3, 2023

Scope

This pull request introduces WhatsApp SMS functionality via Twilio and includes an example in the documentation for an AI assistant designed for a text-based pizza restaurant.

  • Added WhatsApp SMS functionality using the textbase/whatsappsms.py module.
  • Created a Twilio class with methods to sendsms() and extract_phone_number() .
  • Integrated Twilio with the main application (main.py) to send messages when certain conditions are met.

Note: This may not be a very furnished way to implement this but , its just a stepping stones to build this functionality & i believe we can together improve this very much

Screenshots


[Include relevant screenshots if applicable]

  • When message is sent to the user :

    image

  • Pizza AI implement WhatsappSMS Example :

    image

Code improvements

  • Added a generic utility for sending WhatsApp messages (whatsappsms.py).
  • Improved overall code structure and maintainability.

Developer checklist

  • Manually tested code on desktop and mobile browsers.
  • Code review completed.
  • Removed all personal credentials (API keys, etc.) from the code.

Documentation

  • Added a use case example in the documentation for an AI assistant in a pizza restaurant scenario.
  • Demonstrated how to use the WhatsApp SMS feature for order updates.

@vercel
Copy link

vercel bot commented Sep 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
textbase ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2023 9:18pm

@KartikeyMish
Copy link
Author

KartikeyMish commented Sep 4, 2023

Update: Earlier I made changes in .env.example by adding the environment variables for twilio but it was causing merge conflicts , so I deleted that file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant