🚀 Quick Start - Auth
Quickstart: Learn how to authenticate and manage multiple users in your app.
Introduction to Entities
- Composio allows you to authenticate and manage multiple users in your app.
- Each unique user is represented by a unique entity id
- You can create entities using Python, JavaScript and CLI
Introduction to Connected Accounts
- When a user connects their account, a connected_account object is created.
- This object securely stores authentication data such as access tokens and refresh tokens.
Turn natural language into Google Calendar actions
What you’ll achieve: By the end of this guide, you’ll connect your user’s Google Calendar and perform actions on it.
Follow these 5 steps to connect your user to Google Calendar and create an event
Install Composio
CLI binary package coming soon. Skip pip install
if not using CLI.
Authenticate Google Calendar Account
We’ll use Jessica as our example user. There are multiple ways to authenticate an account:
You can create and authenticate entities using any of the above methods (Python and Javascript). The CLI is just one of several options available.
Ensure you complete the authentication process by following the URL provided in your console.
Initialize Composio and OpenAI
Set up your development environment:
Don’t forget to set your COMPOSIO_API_KEY
and OPENAI_API_KEY
in your environment variables.
Fetch Google Calendar Actions & Interact with LLM
Now, let’s create a Google Calendar event using natural language:
Execute Tool Calls
Finally, let’s execute the action determined by the LLM:
What Just Happened? 🎉
Congratulations! You’ve just:
- 🔐 Authenticated Jessica’s Google Calendar account with Composio
- 🛠 Fetched Google Calendar actions Jessica can perform
- 🧠 Passed these actions to an AI language model
- ⭐ Instructed the AI to schedule an event on Jessica’s Calendar
- ✅ Successfully executed the action on Google Calendar
Next Steps
Was this page helpful?