Workflows lets you create an automated omnichannel notification experience for your users using a visual workflow builder.

This feature has the flexibility to connect to any third party tool like Mixpanel, Amplitude, Segment or to any web hooks and use conditional blocks to decide who should receive what notifications, without any code!

What is an Workflow?

Workflows in Fyno is a notifications orchestration service that allows anyone to easily design intelligent notification flows without coding.

Workflow can be used to

  • Deliver notifications based on notification events created from and data sources like Segment, Mixpanel, Amplitude etc.
  • Deliver notifications based on a payment gateway response like Razorpay.
  • Enables you to call any APIs and the response can be used to determine any conditional flow.
  • Send Delivery reports back to your backend system or third party analytics tools like Mixpanel through callbacks.

Workflow Triggers

To create a workflow, you need to choose a trigger. This is based on how you want to send payload to workflow. We support 2 triggers in workflows now.

  1. Webhooks - Create the Workflow using a Webhook as the trigger.
  2. Virtual Mobile No - A virtual mobile number with the capability to receive incoming messages can be configured here . Contact [email protected] for configuring a virtual number.
  3. Mixpanel - Create the Workflow using a mixpanel cohort as the trigger.

Understanding Workflows

The best way to explain the full scope and capability of Workflows is with an example. So, let’s dive right in.

Company ABC handles payments on its website via an external payment gateway.

The requirement is

  • To send a notification to the customer whenever an online payment succeeds or fails.
  • If a payment fails, the Workflow should handle the failure scenario differently depending on the type of customer.
  • If the user is a Power User, then convert the payment type to COD and confirm the order by sending an Email and SMS.
  • If the user is non-Power User, then send a SMS with a payment link to retry payment.

Fyno’s Workflow makes it simple to operate this end-to-end process.

While Fyno’s notification events will handle the delivery of notifications, the true power of Workflows can be harnessed by calling any APIs as part of the Workflow and creating actions based on the response.

For this example, let’s assume that company ABC has two API endpoints -

  1. /customers - a GET endpoint that returns the type of customer.

  2. /orders/{{customer_id}} - a PUT endpoint that can update the customer’s order details
    Here is how the end-to-end process would work:

  1. Company ABC creates the Workflow in Fyno.
  2. ABC then adds the Workflow URL as a webhook for successful and failed payments on the payment gateway site
  3. Customer 1 makes a successful purchase on ABC’s website. The Workflow fires, and the customer receives an SMS and email confirming the successful purchase.
  4. Customers 2 and 3 cannot make a successful online payment due to an issue with the bank. The Workflow fires, and due to the failed payment, it knows to trigger the /customers endpoint to get details about customer type.
  5. Customer 2 is found to be a Power User (best user cohort in terms of monetisation) based on the result of the API call to /customers.
  6. As a result, Customer 2’s order is confirmed (despite the failed payment), and the Workflow converts the order type to COD by making an API call to /orders/{{customer_id}}.
  7. If this API call is successful, the Workflow sends an order confirmation to Customer 2 via Email and SMS.
  8. But Customer 3 is found to be a non-Power User.
  9. So for Customer 3, workflow will trigger a notification with Payment link to retry and make the payment.
  10. Once the Customer 3 successfully makes the payment, he/she will receive Order Confirmation communication.

What would have otherwise required more than a few lines of code to configure, is being addressed with Fyno's Workflow feature, allowing you to add triggers, provide conditions and decide outcomes, all with a visual understanding of how the entire flow will work.