Send Emails within a Call Flow

You can send transactional emails directly from your voice flows using the email@v1 action in Callr Actions.

This is useful for:

  • Logging inbound calls via email
  • Notifying a team or support agent
  • Sending confirmation messages to your team
  • Alerting an operator when voicemail is triggered

✉️ How It Works

The email@v1 action sends an email from [email protected]. You can:

  • Customize the sender name (fromName)
  • Set a reply-to address
  • Define one or more recipients
  • Personalize the subject and body using Callr variables (like call.fromNumber, app.name, etc.)

⚠️

Important

Due to email authentication standards (SPF/DKIM), the actual sender email address cannot be changed.


🧪 Example: Send an Email on Incoming Call

- action: email@v1
  params:
    fromName: My Company       # Optional sender name
    replyTo: [email protected]
    to:
      - [email protected]
      - [email protected]
    subject: You received a call from ${{ call.fromNumber }}
    text: |
      Hello,

      You just received a call from ${{ call.fromNumber }}.
      Number called: ${{ call.toNumber }} (Scenario: ${{ scenario.name }}).

      Scenario ID: ${{ scenario.sid }}
      Run ID: ${{ run.id }}

      Regards,
      Callr

This email will be sent during your call flow (e.g., inside any branch), notifying the recipients of who called, when, and where the call was routed.


🔐 Notes and Limitations

  • All emails are sent from [email protected]
  • You can set replyTo, so users can respond directly to you
  • You can customize fromName (e.g. your company or service name)
  • You can send to multiple recipients using an array
  • Only plain text emails are supported (no HTML)

✅ Common Use Cases

  • 🔔 Support Notification
    Alert your team when someone leaves a voicemail or misses a call

  • 📩 Lead Capture
    Email a sales rep when a new lead calls your campaign number

  • 🧾 Call Logging
    Store email-based call reports for backup or audit


💡

Tip

Combine email@v1 with fetch@v2 to push call data to both email and your backend.