Files
humanlayer/examples/ts_email_templates
2025-05-29 08:54:45 -07:00
..
2025-05-29 08:54:45 -07:00
2025-01-21 16:04:11 -08: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:

The example demonstrates:

  • Custom HTML templates for function call approvals
  • Custom HTML templates for human-as-tool contacts
  • Template variables like event.spec.fn and event.spec.msg
  • Using the urls.base_url variable for approval/response links