A starter repository for members of the Peregian Digital Hub's Tokenizer program. This repository helps you get up and running with your first Agent workflows.
The Tokenizer program at Peregian Digital Hub provides tools and resources for building AI-powered agent workflows. This starter repository includes a sample email templating tool to demonstrate how to create useful agent tools.
A simple Python tool for sending emails with a clean, professional boilerplate template. This tool uses the Zapier Email Webhook to create draft emails with proper formatting.
- Professional, clean design with modern styling
- Supports HTML formatting in content
- Automatic paragraph formatting with proper spacing
- Mobile-responsive design
- Built-in markdown to HTML conversion (with --markdown flag)
python3 tools/use_email.py --to recipient@example.com --subject "My Subject" --content "This is a simple email message."--to: Comma-separated list of recipient email addresses (required)--subject: Subject line of the email (required)--content: Content of the email (required)--cc: Comma-separated list of CC recipients--bcc: Comma-separated list of BCC recipients--from-email: Sender email address--markdown: Treat content as markdown and convert to HTML
-
HTML content:
python3 tools/use_email.py --to recipient@example.com --subject "My Subject" --content "$(cat notes/my_email_content.html)"
-
Markdown content:
python3 tools/use_email.py --to recipient@example.com --subject "My Subject" --content "$(cat notes/my_email_content.md)" --markdown
-
Direct text content:
python3 tools/use_email.py --to recipient@example.com --subject "My Subject" --content "This is a simple email message."
- Clone this repository
- Set the
ZAPIER_EMAIL_WEBHOOK_URLenvironment variable with your Zapier webhook URL - Install required dependencies:
pip install -r requirements.txt
This repository serves as a starting point for creating your own agent tools. Follow these steps:
- Explore the existing tools in the
/toolsdirectory - Create new tools following the same pattern
- Test your tools with various inputs
- Integrate your tools into your agent workflows
- Python 3.6+
- Required Python packages are listed in
requirements.txt