Integration
Connect Gmail to Open Government, Spain
When something happens in Gmail, your agent does the next thing in Open Government, Spain. Describe it in plain language and the automation is built, tested on every branch and kept running.
Build it
What do you want Gmail and Open Government, Spain to do together?
Describe it and your agent reads both APIs, builds the automation, tests every branch and ships it. The list below is what exists today, not the limit.
Ask the assistant
You'll sign in before anything runs. What you typed comes with you.
Or work from Claude Code
Install the APIANT plugin for Claude Code and build, edit, test and read run history from your terminal. Every plan gets this, including free, and it spends no assistant credits.
Connect Claude CodeEverything your agent can do with Gmail and Open Government, Spain
Triggers and actions 3 triggers · 38 actions
Trigger
Email SentFires when an email is sent from the mailbox (optionally filtered by query). Managed by Composio (server-side poll; ~15 min floor).
Trigger
New Gmail MessageFires when a new email arrives (optionally filtered by query/labels). Managed by Composio (server-side poll; ~15 min floor).
Action
Add Label To EmailAdds and/or removes specified gmail labels for a message; ensure `message id` and all `label ids` are valid (use 'listlabels' for custom label ids).
Action
Create Email DraftCreates a gmail email draft, supporting to/cc/bcc, subject, plain/html body (ensure `is html=true` for html), attachments, and threading.
Action
Create LabelCreates a new label with a unique name in the specified user's gmail account.
Action
Delete DraftPermanently deletes a specific gmail draft using its id; ensure the draft exists and the user has necessary permissions for the given `user id`.
Action
Delete MessagePermanently deletes a specific email message by its id from a gmail mailbox; for `user id`, use 'me' for the authenticated user or an email address to which the authenticated user has delegated access.
Action
Fetch EmailsFetches a list of email messages from a gmail account, supporting filtering, pagination, and optional full content retrieval.
Action
Fetch Message By Message IdFetches a specific email message by its id, provided the `message id` exists and is accessible to the authenticated `user id`.
Action
Fetch Message By Thread IdRetrieves messages from a gmail thread using its `thread id`, where the thread must be accessible by the specified `user id`.
Action
Get AttachmentRetrieves a specific attachment by id from a message in a user's gmail mailbox, requiring valid message and attachment ids.
Action
Get ContactsFetches contacts (connections) for the authenticated google account, allowing selection of specific data fields and pagination.
Action
Get PeopleRetrieves either a specific person's details (using `resource name`) or lists 'other contacts' (if `other contacts` is true), with `person fields` specifying the data to return.
Action
Get ProfileRetrieves key gmail profile information (email address, message/thread totals, history id) for a user.
Action
List DraftsRetrieves a paginated list of email drafts from a user's gmail account. use verbose=true to get full draft details including subject, body, sender, and timestamp.
Action
List LabelsRetrieves a list of all system and user-created labels for the specified gmail account.
Action
List ThreadsRetrieves a list of email threads from a gmail account, identified by `user id` (email address or 'me'), supporting filtering and pagination.
Action
Modify Thread LabelsAdds or removes specified existing label ids from a gmail thread, affecting all its messages; ensure the thread id is valid.
Action
Move To TrashMoves an existing, non-deleted email message to the trash for the specified user.
Action
Patch LabelPatches the specified label.
Action
Remove LabelPermanently deletes a specific, existing user-created gmail label by its id for a user; cannot delete system labels.
Action
Reply To ThreadSends a reply within a specific gmail thread using the original thread's subject, requiring a valid `thread id` and correctly formatted email addresses. supports attachments via the `attachment` parameter with valid `s3key`, `mimetype`, and `name`.
Action
Search PeopleSearches contacts by matching the query against names, nicknames, emails, phone numbers, and organizations, optionally including 'other contacts'.
Action
Send DraftSends the specified, existing draft to the recipients in the to, cc, and bcc headers.
Action
Send EmailSends an email via gmail api using the authenticated user's google profile display name, requiring `is html=true` if the body contains html and valid `s3key`, `mimetype`, `name` for any attachment.
Trigger
New datasetPoll for datasets newly added to the catalogue.
Action
Find datasets by formatSearch datasets that have a distribution in a specific file format (e.g. csv).
Action
Find datasets by geographic scopeSearch datasets covering a specific geographic area.
Action
Find datasets by keywordSearch datasets tagged with a specific keyword.
Action
Find datasets by publisherSearch datasets published by a specific government publisher identifier.
Action
Find datasets by themeSearch datasets belonging to a specific category or topic.
Action
Find datasets by titleSearch datasets whose title matches or contains the given text.
Action
Find datasets modified between datesSearch datasets that were last modified within a given date range.
Action
Find distributions by datasetRetrieve the distributions belonging to a specific dataset.
Action
Find distributions by formatSearch distributions available in a specific file format.
Action
Get datasetRetrieve a single dataset by its unique catalogue identifier.
Action
List categoriesList all categories/topics that have datasets in the catalogue.
Action
List datasetsList all datasets in the Spain open government data catalogue, with sorting and pagination.
Action
List distributionsList all data distributions (downloadable files/resources) in the catalogue.
Action
List geographic scopesList all geographic coverage areas that have datasets in the catalogue.
Action
List publishersList all publishing organizations present in the catalogue.
No trigger or action matches that. Ask your agent to add it: it reads the API documentation and builds what you describe.