Yes, Pipedream can help you achieve both tasks: receiving a webhook from users who registered to your newsletter and sending a custom email to these users from your business email. ### Step-by-Step Guide 1. Receive a Webhook from Users Who Registered to Your Newsletter You can use Pipedream to create a workflow that triggers on a webhook event. Here’s how to set it up: 1. Go to your Pipedream dashboard and create a new workflow. 2. Choose the “HTTP / Webhook” trigger. 3. Pipedream will provide you with a unique webhook URL. Use this URL in your newsletter service to send registration events to Pipedream. 2. Send a Custom Email to the User Once the webhook is received, you can add an action to send an email to the user. Here’s an example of how you can do this using Pipedream’s Email app: ```
import { axios } from “@pipedream/platform”; export default defineComponent({ props: { email: { type: “app”, app: “email”, }, }, async run({ steps, $ }) { const userEmail = steps.trigger.event.email; // Assuming the webhook payload contains the user’s email const options = { to: userEmail, subject: ‘Welcome to Our Newsletter!’, text: ‘Thank you for registering to our newsletter.’, }; $.send.email(options); }, });