how to send email from bot

We need to send out an email after completing the task. how to do it ?

Hello Paneendra,

Thank you for reaching out to Kore.ai Community.

To send emails from a Kore.ai bot, you’ll need to use a Service Node within your Dialog Task, there’s no built-in email API or function provided by the platform directly. Instead, you integrate with an external email service.

Here are a couple of widely-used approaches:

  1. Gmail API
  • Configure HTTP requests to Gmail’s REST API in the Service Node.
  • Handle OAuth 2.0 authentication or use API keys as per Gmail’s documentation.
  • Useful if you don’t mind managing authentication flows and Gmail-specific limitations.
  1. SendGrid (or similar email provider)
  • Set up an account and generate an API key.
  • In the Service Node, add the header Authorization: Bearer <your_sendgrid_api_key>.
  • Build the email payload per SendGrid’s API format (subject, body, recipient, etc.), then call the SendGrid endpoint.
  • This tends to be simpler and more reliable for transactional/bulk emails.

Hope this helps for your requirement.

Thank you,
Srujan Madderla
Kore.ai Community Team