Composio Quick Start

In this guide weโ€™ll configure and enable a trigger to listen to new emails in Gmail & configure an agent to add important label to emails that contains details about bank transactions.

1

Install Libraries

CLI
pip install composio-core composio_openai
2

Connect Your Gmail Account

Weโ€™ll use Jessica as the user id (entity id).

You need to have an active Gmail Integration. Learn how to do this here

Donโ€™t forget to set your COMPOSIO_API_KEY and OPENAI_API_KEY in your environment variables.

3

Enable Triggers

4

Create an Agent

5

Create a Trigger Listener

What Just Happened? ๐ŸŽ‰

Congratulations! Youโ€™ve just:

  1. ๐Ÿ” Connected your Gmail account with Composio
  2. ๐Ÿ›  Enabled Triggers
  3. ๐Ÿง  Passed these triggers event payloads to an AI language model
  4. โญ Executed an action from Gmail tool

Next Steps

Now that youโ€™ve seen how to use triggers, you can explore the following resources: