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

1

Install Composio

CLI binary package coming soon. Skip pip install if not using CLI.

2

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.

3

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.

4

Fetch Google Calendar Actions & Interact with LLM

Now, let’s create a Google Calendar event using natural language:

5

Execute Tool Calls

Finally, let’s execute the action determined by the LLM:

What Just Happened? 🎉

Congratulations! You’ve just:

  1. 🔐 Authenticated Jessica’s Google Calendar account with Composio
  2. 🛠 Fetched Google Calendar actions Jessica can perform
  3. 🧠 Passed these actions to an AI language model
  4. ⭐ Instructed the AI to schedule an event on Jessica’s Calendar
  5. ✅ Successfully executed the action on Google Calendar

Next Steps