This topic was automatically generated from Slack. You can find the original thread here.
I’m wondering if when a workflow execution fails I can get a text notification or whatsapp notification on my phone instead of email. I have the basic plan thanks
By default, Pipedream workflows send email notifications for unhandled errors, but you might prefer to receive notifications through other channels like SMS or WhatsApp for immediate attention. While direct integration for sending error notifications to WhatsApp or SMS is not explicitly mentioned in the provided documentation, you can achieve this by using custom logic within your workflows. For SMS notifications, you could use a service like Twilio. For WhatsApp notifications, Twilio also offers WhatsApp integration. You would need to set up a Twilio account and use their API to send messages. Here’s a basic example of how you might set up a Pipedream workflow to send an SMS notification using Twilio when an error occurs. Note that this requires you to have a Twilio account and to use their API credentials: import { axios } from "@pipedream/platform" export default defineComponent({ props: { twilio: { type: "app", app: "twilio", }, }, async run({ steps, $ }) { try { // Your workflow logic here } catch (error) { // Send SMS via Twilio API on error await axios($, { method: "POST", url: `https://api.twilio.com/2010-04-01/Accounts/${this.twilio.$auth.account_sid}/Messages.json`, auth: { username: `${this.twilio.$auth.account_sid}`, password: `${this.twilio.$auth.auth_token}`, }, headers: { "Content-Type": "application/x-www-form-urlencoded", }, data: `Body=Workflow Error: ${error.message}&From=${'Your Twilio Number'}&To=${'Your Phone Number'}`, }); } }, }); Please replace 'Your Twilio Number' and 'Your Phone Number' with your actual Twilio number and your personal phone number, respectively. For WhatsApp notifications, the process would be similar, but you’d need to follow Twilio’s specific setup for WhatsApp, including using a WhatsApp-enabled Twilio number and following WhatsApp’s template guidelines for sending messages. Remember, this is a custom solution that requires you to handle errors explicitly in your workflow and to have an external service like Twilio set up for notifications. For more detailed guidance on integrating Twilio with Pipedream, or for assistance with WhatsApp notifications, please visit [Twilio’s documentation](https://www
Also, I invite you to try the 3.0 Builder. We’ve received positive feedback on how it improves development and in the future we’ll ship control flow (aka if/else/loops)