Imagine having your own personal ChatGPT AI Assistant on Telegram and WhatsApp that can not only manage your calendar but also communicate with you via voice. Thanks to the integration of OpenAI’s GPT, LangChain, and Zapier Natural Language Actions (NLA), this dream is becoming reality. In this article, we’ll explore how LangChain’s open-source codebase, combined with Zapier NLA, enables powerful AI-powered chatbots to handle calendar events and interact with users through (voice) chats on Telegram and WhatsApp.
Previously, we introduced you to the open-source codebase for building your own ChatGPT AI Assistant on Telegram and WhatsApp, leveraging the power of OpenAI’s GPT3-4, LangChain and Twilio altogether. We are now excited to take it a step further by integrating Zapier NLA with the LangChain Assistant, paving the way for a more intuitive and seamless chatbot experience.
While this is just a simple first step, the open-source nature of our project offers endless possibilities for customization, allowing you to create a tailored solution for your personal or business use case.
What is LangChain?
LangChain is an open-source library that allows developers to create applications powered by Large Language Models (LLMs). It enables the development of advanced chatbots, generative question-answers from custom data sources, summarization, and more. LangChain utilizes concepts like Agents and Chains to execute tasks and dynamically select actions based on input. That’s why we choose to build with this.
What is Zapier NLA?
Zapier is a popular automation SaaS tool that connects thousands of apps and actions in a single platform. The Zapier NLA API enables developers to access over 5,000 apps and 50,000+ actions using a natural language interface, making it even more powerful and accessible.
The Zapier NLA API allows you to:
- Incorporate the extensive range of 5,000+ apps from Zapier’s platform into your own product.
- Seamlessly integrate with chatbots or Large Language Models.
- Drive any integration project with ease and efficiency.
For example, using the NLA API, you can:
- Send messages in Slack
- Add a row to a Google Sheet
- Draft a new email in Gmail
- And thousands more functionalities through a universal natural language API!
Voice Chats for Calendar Management
With our LangChain Assistant, you can now send voice chats to your bot on WhatsApp or Telegram to add events to your calendar. We’ve tried it out with Google Calendar, but this can quickly be expanded to include other task-related apps like Trello, Evernote, Asana, Google Sheets, and more. This feature is a start to enabling a more natural and convenient way to interact with the “assistant,” making it feel like a true personal assistant tailored to your needs.
How to Configure LangChain Assistant with Zapier NLA and Google Calendar Integration:
Step 1: Set up LangChain Assistant
You need to have the latest version of our Github repository set up. Alternatively, you can use our free Replit. Replit allows users to create online projects (called Repls) and our Repl can be cloned and hosted for free!
Step 2: Configure your preferred messaging platform
Follow our guides to set it up on the desired messaging platform:
Step 3: Apply for the Zapier NLA Beta program
Fill out the form with the necessary details to apply for access to the Zapier NLA API for your application: https://zapier.com/l/natural-language-actions
Step 4: Set up Zapier NLA integration
Visit https://nla.zapier.com/get-started/ and copy the Personal API Key:
Step 5: Integrate Google Calendar
- Click on the ‘Manage Actions’ link next to your Personal API Key.
- In the popup, type ‘Google Calendar’ to add a new action.
- Select ‘Google Calendar: Create Detailed Event’ from the list of possible actions.
- Connect your own calendar, leaving everything on ‘Have AI guess.’ We recommend opening the ‘Show all options’ and including ‘Summary’ and ‘Description.’
Step 6: Add the API Key to your project
Go to the Replit and add the API key as a Secret Environment Variable.
Step 7: Run the project
Finally, ‘Run’ the project, and it should work! 🙂
Expanding the Integration Possibilities
We started with integrating Zapier NLA for Google Calendar, but the possibilities are endless! Other popular apps you can integrate with Zapier NLA include Google Sheets, Gmail, Slack, Trello, Google Drive, HubSpot, and many more. With such a wide variety of apps, you can really create an AI Assistant tailored to your specific needs.
Wouldn’t it be awesome if you could draft and edit blog posts or articles on the move, just by speaking your thoughts out loud? By integrating your the assistant with content management platforms like WordPress or Medium, you can turn this idea into reality. As you walk through the park or travel to work, your AI assistant can capture your ideas and help create a well-structured draft for your next piece of content.
Or imagine having your AI assistant work on your creative ideas overnight, searching the internet and crafting concept documents for you. As you sleep, your AI assistant could scour Google for relevant information, compile the findings, and present you with a clear and concise concept document the next morning.
The potential for innovation and personalization is immense, and we’re just beginning to scratch the surface!
If you have a cool AI assistant idea, let us know in the comments below – we’d love to create more use cases soon!
Want to know what’s up next? Follow us on Twitter or LinkedIn, and subscribe to our newsletter to stay informed about the latest developments. 👇