97Display Send Email
AI-generatedOverview
This node sends email notifications using the 97Display notification API. It supports sending emails either by selecting a predefined email template from the portal or by composing a custom subject and body. The node can send emails to either a lead or an organization, making it useful for automated email notifications in workflows triggered by events such as webhooks. For example, it can be used to notify leads about updates or send organization-wide announcements.
Use Case Examples
- Sending a welcome email to a new lead using a predefined email template.
- Sending a custom notification email to an organization without using a template.
Properties
| Name | Meaning |
|---|---|
| Organization ID | The ID of the organization, automatically populated from the webhook data. |
| Workflow ID | The ID of the current workflow, automatically set to the workflow's ID. |
| Use Email Template? | Boolean flag to choose whether to use a predefined email template or compose a custom email. |
| Send To Lead? | Boolean flag to determine whether the email is sent to a lead or to the organization. |
| Email Template | Select an email template from the available options loaded from the API. Only shown if 'Use Email Template?' is true. |
| Subject | Subject of the email when not using a template. |
| Body | Body content of the email when not using a template. |
| Is HTML Email | Hidden flag indicating if the email should be sent as HTML. Defaults to false. |
| APIKey | API key used for authenticating requests to the 97Display notification API, sourced from environment variables or node parameters. |
| APIUrl | Base URL of the 97Display notification API, sourced from environment variables or node parameters. |
Output
JSON
json- Response from the 97Display notification API after sending the email, containing details about the email sending operation or error information.
Dependencies
- 97Display notification API
- API key credential for authentication
Troubleshooting
- Common issues include failure to load email templates due to incorrect API URL or invalid API key. The node returns an error message indicating the failure to load templates.
- Errors during email sending may occur if the API key is invalid, the API URL is incorrect, or required parameters are missing. The node throws the error message received from the API.
- Ensure environment variables for API key and URL are correctly set or provided in node parameters.
- If using templates, ensure the template JSON is correctly formatted and contains valid id, subject, and body fields.
Links
- 97Display Email Templates API - API endpoint to retrieve email templates by workflow ID.
- 97Display Send Email API - API endpoint to send email notifications.