curl --request POST \
--url https://api-lr.agent.ai/v1/action/send_message \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "email",
"to": "current_user",
"output_formatted": "<string>",
"email_addresses": "<string>",
"subject": "<string>"
}
'{
"status": 123,
"response": {}
}Send a message to a specified recipient, such as an email with formatted content.
curl --request POST \
--url https://api-lr.agent.ai/v1/action/send_message \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "email",
"to": "current_user",
"output_formatted": "<string>",
"email_addresses": "<string>",
"subject": "<string>"
}
'{
"status": 123,
"response": {}
}Bearer token from your account (https://agent.ai/user/integrations#api)
Select the type of message to send, such as 'Email'.
email Enter the recipient's address, such as '[email protected]' for emails.
current_user, email_addresses Provide the message content, such as 'Hello, your order is confirmed!' or formatted HTML for emails.
Enter each email on a new line
Provide a subject line for the email such as New message from {{agent.name}}