Use Brevo with OpenAI Python

Brevo, formerly Sendinblue, is a SaaS solution for relationship marketing.
🔗 Connect and Use Brevo
1. 🔑 Connect your Brevo account
2. ✅ Select an action
3. 🚀 Go live with the agent
What do you want to do?
Actions
Email Campaigns
Transactional emails
Contacts
SMS Campaigns
Transactional SMS
WhatsApp Campaigns
Senders
Domains
Webhooks
Reseller
Account
User
Process
Inbound Parsing
Master account
Companies
Deals
Tasks
Notes
Files
Conversations
Ecommerce
Event
Coupons
Transactional WhatsApp
External Feeds

API actions for Brevo for AI assitants/agents

Language
JS
PYTHON
Framework

Master account

Revoke An Admin User

This endpoint allows to revoke/remove an invited member of your Admin account
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_REVOKE_AN_ADMIN_USER])

Get The List Of All Admin Users

This endpoint allows you to list all Admin users of your Admin account
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_THE_LIST_OF_ALL_ADMIN_USERS])

Check Admin User Permissions

This endpoint checks an admin's permissions via email, supporting a GET request for detailed user status, group associations, and feature access specifics, including API keys, plans, and manag
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_CHECK_ADMIN_USER_PERMISSIONS])

Get The List Of Groups

This endpoint allows you to list all groups created on your Admin account.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_THE_LIST_OF_GROUPS])

Companies

Get All Companies

This endpoint retrieves a list of companies with optional filters, supports pagination, sorting, and limits, includes company details in responses, and provides error specifics.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_ALL_COMPANIES])

Create A Company

This API endpoint enables creating a company with details (name, attributes, country code) in JSON. It returns a unique ID upon success, and specific error codes and messages for issues like i
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_CREATE_A_COMPANY])

Get A Company

Retrieve company details by ID. Provides company attributes, linked contacts & deals. Errors for invalid ID or missing company.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_A_COMPANY])

Delete A Company

Delete a company by ID. Requires the company ID in the path. Success results in a 204 status, while errors return 400 (invalid data) or 404 (not found) with detailed error messages.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_DELETE_A_COMPANY])

Update A Company

This endpoint allows for the partial update of a company's details by its ID. It requires a JSON body with company details, such as name and attributes, and responds with updated company infor
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_UPDATE_A_COMPANY])

Get Company Attributes

This endpoint retrieves a list of company attributes, including names, labels, types, options, and required status in JSON format. Suitable for understanding company data structure.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_COMPANY_ATTRIBUTES])

Deals

Get Pipeline Stages

This endpoint is deprecated. Prefer /crm/pipeline/details/{pipelineID} instead.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_PIPELINE_STAGES])

Get A Pipeline

Access deal pipeline details by ID. Fetch the name, ID, and stages of a specific pipeline to manage deals effectively. Returns data in JSON format. Error codes included for invalid requests.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_A_PIPELINE])

Get All Pipelines

This endpoint (`/crm/pipeline/details/all`) retrieves all pipeline details, including names, IDs, and stages. It returns an array of pipeline objects on success or error codes for invalid requ
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_ALL_PIPELINES])

Get Deal Attributes

This endpoint (`/crm/attributes/deals`) fetches deal attributes, returning an array of attribute details including internal name, label, type, options, and if required.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_DEAL_ATTRIBUTES])

Get All Deals

The `GET /crm/deals` endpoint fetches a list of deals with optional filters (name, company, contact IDs), supporting pagination (`offset`, `limit`) and sort order, returning deal details and l
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_ALL_DEALS])

Create A Deal

Endpoint '/crm/deals' allows for deal creation with required name & optional attributes like owner, amount, pipeline, & stage. Supports JSON requests & returns the created deal ID with 201 or
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_CREATE_A_DEAL])

Get A Deal

This GET endpoint fetches details for a deal using its ID, including attributes and linked contacts/companies. It requires an 'id' parameter and returns status codes 200, 400 for invalid IDs,
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_A_DEAL])

Delete A Deal

This endpoint allows for the deletion of a specified deal by its ID. Upon successful deletion, a 204 status is returned. Errors are detailed with specific codes and messages for issues like in
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_DELETE_A_DEAL])

Update A Deal

This endpoint updates a deal's details using its ID, requiring a path 'id' parameter and a JSON body with the information. Success returns a 204 code; errors have specific codes/messages for i
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_UPDATE_A_DEAL])

Tasks

Get All Task Types

This endpoint retrieves all task types, returning their IDs and titles in JSON format. It's tagged under "Tasks" with a successful response indicating the detailed task types available.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_ALL_TASK_TYPES])

Get All Tasks

This endpoint fetches a filtered task list based on type, status, assignee, contacts, deals, and company IDs within a date range. It offers pagination, sorting, and outputs tasks' details incl
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_ALL_TASKS])

Create A Task

This endpoint enables users to create tasks in the CRM, requiring task name, type ID, and due date, with options for additional details. Successful creation yields a unique task ID.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_CREATE_A_TASK])

Get A Task

Get details of a specific task by its ID in the CRM system. Requires the task's unique string ID. Returns task details, including type, name, and related contacts, deals, and companies. Possib
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_A_TASK])

Delete A Task

This endpoint deletes a specified task by its ID. Success returns 204 with no content. Errors yield a 400 for invalid requests, detailing the issue, or a 404 if the task ID isn't found, with s
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_DELETE_A_TASK])

Update A Task

This endpoint permits updating specific CRM task details (e.g., name, duration, type, date, notes, status, assignments, linked entities) and reminders. It returns error messages for invalid da
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_UPDATE_A_TASK])

Notes

Get All Notes

This endpoint retrieves CRM notes, supporting filters (entity type, IDs, date range), pagination, and sorting by creation date. It returns note content, IDs, author, timestamps, and issues a 4
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_ALL_NOTES])

Create A Note

This endpoint enables users to create notes in the CRM with text and linked IDs (contact, deal, company), returning the note's ID or errors for invalid inputs/formats.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_CREATE_A_NOTE])

Get A Note

The `/crm/notes/{id}` endpoint supports GET requests to fetch details of a specific note by ID, including text, linked contacts, deals, author information, and timestamps, with responses for s
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_A_NOTE])

Update A Note

This endpoint updates a note by ID, allowing changes to text, contacts, deals, and companies. It requires a JSON body with text and optional linked IDs. On success, it returns HTTP 204, and fo
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_UPDATE_A_NOTE])

Delete A Note

Endpoint `/crm/notes/{id}` allows deleting a specific note by its ID. It returns a 204 status code when successful, or a 400/404 with error details if the request fails. Essential for managing
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_DELETE_A_NOTE])

Files

Get All Files

This endpoint retrieves files filtered by entity types, IDs, dates, and supports pagination and sorting. It filters by companies, deals, contacts, etc., offering details like name and size. Er
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_ALL_FILES])

Upload A File

The `POST /crm/files` endpoint enables file uploads, linking them to CRM entities. It requires multipart/form-data and returns IDs upon success or error details on failure.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_UPLOAD_A_FILE])

Download A File

This endpoint allows downloading a file by ID. Specify `id` in the path to request a file. Successful requests return a temporary link to download the file, valid for 5 minutes. Responses may
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_DOWNLOAD_A_FILE])

Delete A File

This endpoint allows for the deletion of a specific file by ID. On success, it returns a 204 status. Errors related to invalid data or file not found are handled with 400 and 404 statuses, res
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_DELETE_A_FILE])

Get File Details

This endpoint fetches detailed file information by ID, including name, authorId, and more. Responses vary from successful retrieval (200) to invalid data (400) and not found (404).
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_FILE_DETAILS])

Conversations

Send A Message As An Agent

This endpoint enables agents to send messages in `Conversations` using a JSON with `visitorId` and `text` required, and optional fields like `agentId`. Success returns message details; failure
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_SEND_A_MESSAGE_AS_AN_AGENT])

Get A Message

Fetches a specific message in a conversation by its ID. Supports detailed object including message ID, type (agent/visitor), text, agent and visitor info, timestamps, and file attachments if a
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_A_MESSAGE])

Update A Message Sent By An Agent

Only agents’ messages can be edited.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_UPDATE_A_MESSAGE_SENT_BY_AN_AGENT])

Delete A Message Sent By An Agent

Only agents’ messages can be deleted.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_DELETE_A_MESSAGE_SENT_BY_AN_AGENT])

Send An Automated Message To A Visitor

Example of automated messages: order status, announce new features in your web app, etc.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_SEND_AN_AUTOMATED_MESSAGE_TO_A_VISITOR])

Get An Automated Message

This endpoint fetches an automated message by ID, detailing its ID, type, text, sender, and creation time, and includes error codes for invalid data or not found items.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_AN_AUTOMATED_MESSAGE])

Update An Automated Message

Update a message by its ID by sending the new text in JSON format. Successful updates show the updated message details; failures return error codes and messages.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_UPDATE_AN_AUTOMATED_MESSAGE])

Delete An Automated Message

This endpoint deletes an automated message by its ID, responds with 204 if successful, and provides error codes 400 or 404 with details if it fails.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_DELETE_AN_AUTOMATED_MESSAGE])

Sets Agent S Status To Online For23 Minutes

We recommend pinging this endpoint every minute for as long as the agent has to be considered online.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_SETS_AGENT_S_STATUS_TO_ONLINE_FOR23_MINUTES])

Ecommerce

Activate The E Commerce App

Getting access to Brevo eCommerce.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_ACTIVATE_THE_E_COMMERCE_APP])

Get Order Details

Get all the orders
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_ORDER_DETAILS])

Managing The Status Of The Order

Manages the transactional status of the order
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_MANAGING_THE_STATUS_OF_THE_ORDER])

Create Orders In Batch

Create multiple orders at one time instead of one order at a time
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_CREATE_ORDERS_IN_BATCH])

Frequently asked questions

What is Composio.dev?

Composio.dev is a cutting-edge framework for building AI applications, designed to make the process of developing AI solutions super easy and fun! It's a collection of powerful tools and libraries that simplify the process of creating AI applications, allowing you to focus on the creative aspects of your project without getting bogged down by the technical details.

How does Composio.dev support Brevo?

Composio.dev seamlessly integrates with Brevo, making it a breeze to leverage its capabilities within the Composio.dev platform. You can use Brevo to call functions on various platforms like Google, GitHub, and others, allowing you to incorporate different services into your AI applications with ease. It also supports user login via OAuth2 and can work with other popular frameworks such as LangChain and CrewAI, giving you the flexibility to build truly innovative AI solutions.

What models can I use with Brevo and openAI_python?

When using Brevo and openAI_python, you have access to a wide range of state-of-the-art language models, including GPT-4o (OpenAI), GPT-3.5 (OpenAI), GPT-4 (OpenAI), Claude (Anthropic), PaLM (Google), LLaMA and LLaMA 2 (Meta), Gemini, and many others. This flexibility allows you to choose the model that best suits your specific use case, whether you're building a chatbot, a content creation tool, or any other AI-powered application. You can experiment with different models and find the one that delivers the best performance for your project.

How can I integrate Brevo with openAI_python?

Integrating Brevo with openAI_python is super easy with Composio.dev! You can use the Composio.dev API to call functions from both Brevo and openAI_python, allowing you to tap into their capabilities with just a few lines of code. The SDK is available in Python, JavaScript, and TypeScript, so you can work with the language you're most comfortable with and integrate these powerful tools into your projects seamlessly.

What is the pricing for Brevo and openAI_python?

Both Brevo and openAI_python are completely free to use, with a generous free tier that allows up to 1000 requests per month. This makes them accessible for developers and organizations of all sizes, whether you're a student working on a personal project or a startup building the next big thing. You can get started with these powerful tools without worrying about breaking the bank.

What kind of authentication is supported for Brevo and openAI_python?

Brevo and openAI_python support OAuth2 authentication, ensuring secure and authorized access to their functionalities. You can use the Composio.dev API to handle authentication and call functions from both Brevo and openAI_python seamlessly. The SDK is available in Python, JavaScript, and TypeScript for your convenience, making it easy to integrate authentication into your projects and keep your users' data safe and secure.

Can I add Brevo to my project?

Absolutely! You can easily incorporate Brevo into your project by utilizing the Composio.dev API. This API allows you to call functions from both Brevo and openAI_python, enabling you to leverage their capabilities within your application. The SDK is available in Python, JavaScript, and TypeScript to facilitate integration, so you can work with the language you're most comfortable with and add these powerful tools to your project with ease.

What is the accuracy of Brevo and openAI_python?

Brevo and openAI_python are designed to provide highly accurate and reliable results, ensuring that your AI applications perform at their best. The integration with Composio.dev ensures precise function calls, enabling you to build robust and powerful AI applications with confidence. The comprehensive framework and the ability to leverage state-of-the-art models ensure reliable and accurate outcomes for your AI development needs, whether you're working on a chatbot, a content creation tool, or any other AI-powered project.

What are some common use cases for Brevo and openAI_python?

Brevo and openAI_python can be used for a wide range of AI applications, making them versatile tools for developers and creators alike. Some common use cases include natural language processing, text generation, question answering, sentiment analysis, and more. They're particularly useful for building chatbots, virtual assistants, content creation tools, and other AI-powered applications that can help you automate tasks, engage with users, and create compelling content. Whether you're working on a personal project or building a product for your startup, these tools can help you bring your ideas to life.

How does Brevo handle data privacy and security?

Data privacy and security are crucial considerations when working with AI systems, and Brevo takes these issues seriously. It follows industry best practices and adheres to strict data protection regulations, ensuring that your data is kept safe and secure. Brevo provides robust security measures, such as encryption and access controls, to ensure the confidentiality and integrity of your data. You can rest assured that your sensitive information is protected when using Brevo for your AI development needs.

Can I customize Brevo and openAI_python for my specific needs?

Absolutely! Brevo and openAI_python are highly customizable and extensible, allowing you to tailor their functionality, models, and configurations to meet your specific requirements. Whether you're building a chatbot, a content creation tool, or any other AI-powered application, you can customize these tools to fit your unique needs. Additionally, Composio.dev provides a flexible platform for integrating and orchestrating various AI tools and services, enabling you to create custom AI solutions that are tailored to your project.

What kind of support and documentation is available for Brevo and openAI_python?

Brevo and openAI_python have comprehensive documentation and a supportive community, making it easy for you to get started and find answers to your questions. Composio.dev also provides extensive resources, including tutorials, guides, and a dedicated support team to assist you throughout your AI development journey. Whether you're a beginner or an experienced developer, you'll have access to the resources you need to make the most of these powerful tools.
+ Integrate seamlessly with your agentic frameworks
Composio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and Sizes
Building for AI across continents🧪