Agent Mail Lists | Integrations | AutoGPT

Agent Mail Create List Entry

What it is

Add an email address or domain to an allow/block list. Block spam senders or whitelist trusted domains.

How it works

This block calls the AgentMail API to add an email address or domain to a specified list. You select a direction ("send" or "receive") and a list type ("allow" or "block"), then provide the entry to add. For block lists, you can optionally include a reason such as "spam" or "competitor."

The API creates the entry and returns both the entry string and the complete entry object with metadata. Any errors propagate directly to the global error handler.

Inputs

Input Description Type Required
direction 'send' for outgoing email rules, 'receive' for incoming email rules "send" | "receive" Yes
list_type 'allow' to whitelist, 'block' to blacklist "allow" | "block" Yes
entry Email address (user@example.com) or domain (example.com) to add str Yes
reason Reason for blocking (only used with block lists, e.g. 'spam') str No

Outputs

Output Description Type
error Error message if the operation failed str
entry The email address or domain that was added str
result Complete entry object Dict[str, Any]

Possible use case


Agent Mail Delete List Entry

What it is

Remove an email address or domain from an allow/block list to stop filtering it.

How it works

This block calls the AgentMail API to remove an existing entry from an allow or block list. You specify the direction, list type, and the entry to delete.

On success the block returns success=True. If the entry does not exist or the API call fails, the error propagates to the global error handler.

Inputs

Input Description Type Required
direction 'send' for outgoing rules, 'receive' for incoming rules "send" | "receive" Yes
list_type 'allow' for whitelist, 'block' for blacklist "allow" | "block" Yes
entry Email address or domain to remove from the list str Yes

Outputs

Output Description Type
error Error message if the operation failed str
success True if the entry was successfully removed bool

Possible use case


Agent Mail Get List Entry

What it is

Check if an email address or domain is in an allow/block list. Verify filtering rules.

How it works

This block queries the AgentMail API to check whether a specific email address or domain exists in an allow or block list. You provide the direction, list type, and the entry to look up.

If the entry is found, the block returns the entry string and the complete entry object with metadata (such as the reason it was added). If the entry does not exist, the error propagates to the global error handler.

Inputs

Input Description Type Required
direction 'send' for outgoing rules, 'receive' for incoming rules "send" | "receive" Yes
list_type 'allow' for whitelist, 'block' for blacklist "allow" | "block" Yes
entry Email address or domain to look up str Yes

Outputs

Output Description Type
error Error message if the operation failed str
entry The email address or domain that was found str
result Complete entry object with metadata Dict[str, Any]

Possible use case


Agent Mail List Entries

What it is

List all entries in an AgentMail allow/block list. Choose send/receive direction and allow/block type.

How it works

This block retrieves all entries from a specified allow or block list by calling the AgentMail API. You select a direction and list type, and optionally set a page size with limit and continue paginating with page_token.

The API returns the list of entry objects, a count of entries in the current page, and a next_page_token for fetching additional results. Any errors propagate to the global error handler.

Inputs

Input Description Type Required
direction 'send' to filter outgoing emails, 'receive' to filter incoming emails "send" | "receive" Yes
list_type 'allow' for whitelist (only permit these), 'block' for blacklist (reject these) "allow" | "block" Yes
limit Maximum number of entries to return per page int No
page_token Token from a previous response to fetch the next page str No

Outputs

Output Description Type
error Error message if the operation failed str
entries List of entries, each with an email address or domain List[Dict[str, Any]]
count Number of entries returned int
next_page_token Token for the next page. Empty if no more results. str

Possible use case