What the model is told
Send an email to a customer. Ask for their email address if you do not have it and spell it back to confirm. Provide a clear subject and plain text body. Returns a MessageID and ErrorCode 0 on success. Tell the customer the email has been sent, not that it has arrived. Only send to the number or address the customer gave you in this conversation, and read it back to confirm it, together with the message wording, before calling this tool.
Request
POSThttps://api.postmarkapp.com/email
Headers
Content-Typeapplication/jsonAcceptapplication/jsonX-Postmark-Server-TokenYOUR_POSTMARK_SERVER_TOKEN
Body
{
"From": "YOUR_POSTMARK_FROM_EMAIL",
"To": "{{toEmail}}",
"Subject": "{{subject}}",
"TextBody": "{{message}}",
"MessageStream": "outbound"
}Parameters
toEmail stringThe customer's email address.subject stringThe email subject line.message stringThe plain text body of the email.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "748359c2-abe5-4b19-b29f-4775b0805128",
"type": "HTTP_REQUEST",
"label": "Send Postmark Email",
"name": "send_postmark_email",
"customName": false,
"description": "Send an email to a customer. Ask for their email address if you do not have it and spell it back to confirm. Provide a clear subject and plain text body. Returns a MessageID and ErrorCode 0 on success. Tell the customer the email has been sent, not that it has arrived. Only send to the number or address the customer gave you in this conversation, and read it back to confirm it, together with the message wording, before calling this tool.",
"parameters": [
{
"name": "toEmail",
"type": "string",
"description": "The customer's email address."
},
{
"name": "subject",
"type": "string",
"description": "The email subject line."
},
{
"name": "message",
"type": "string",
"description": "The plain text body of the email."
}
],
"config": {
"endpoint": {
"method": "POST",
"url": "https://api.postmarkapp.com/email"
},
"headers": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Accept",
"value": "application/json"
},
{
"name": "X-Postmark-Server-Token",
"value": "YOUR_POSTMARK_SERVER_TOKEN"
}
],
"body": "{\n \"From\": \"YOUR_POSTMARK_FROM_EMAIL\",\n \"To\": \"{{toEmail}}\",\n \"Subject\": \"{{subject}}\",\n \"TextBody\": \"{{message}}\",\n \"MessageStream\": \"outbound\"\n}",
"timeout": null
}
}
}IDs are regenerated on every copy.