mirror of
https://github.com/humanlayer/humanlayer.git
synced 2025-08-20 19:01:22 +03:00
Email Templates Example
This example shows how to use custom email templates with HumanLayer for both function calls and human-as-tool contacts.
Running the example
npm install humanlayer
bun email_templates.ts # or whatever ts env you prefer
You'll need to set these environment variables:
HUMANLAYER_API_KEY- Get one at app.humanlayer.dev
The example demonstrates:
- Custom HTML templates for function call approvals
- Custom HTML templates for human-as-tool contacts
- Template variables like
event.spec.fnandevent.spec.msg - Using the
urls.base_urlvariable for approval/response links