Additional Toolkits
AWS SES
AWSSESTool enables an Agent to send emails using Amazon Simple Email Service (SES).
Prerequisites
The following example requires the boto3
library and valid AWS credentials. You can install boto3
via pip:
You must also configure your AWS credentials so that the SDK can authenticate to SES. The easiest way is via the AWS CLI:
Make sure to add the domain or email address you want to send FROM (and, if still in sandbox mode, the TO address) to the verified emails in the SES Console.
Example
The following agent researches the latest AI news and then emails a summary via AWS SES:
aws_ses_tools.py
Toolkit Params
Parameter | Type | Default | Description |
---|---|---|---|
sender_email | str | None | Verified SES sender address. |
sender_name | str | None | Display name that appears to recipients. |
region_name | str | "us-east-1" | AWS region where SES is provisioned. |
Toolkit Functions
Function | Description |
---|---|
send_email | Send a plain-text email. Accepts the arguments: subject , body , receiver_email . |
Developer Resources
- View Tools
- View Cookbook
- Amazon SES Documentation