Lachlan
Lachlan
Xano Team
ย ยทย AI Product Manager @ Xano

Loops Email - Function Pack

Are you looking for an easy, no-code friendly way to add high-quality branded email communication ( Both transactional and Marketing) to your app? Loops is a great service that makes this is an easy process. You can now add the power of loops to your app with a single click making communicating with your users simpler than ever.

Quick Start

  • Account Requirement: A Xano account is necessary, available for free.

  • Snippet Installation: Install the Snippet on any Xano instance even our Build plan.

  • API Key: A Loops API key is required for operation. This key needs to be added as the loops_api_key environment variable within your workplace settings after installing the snippet. More details on where to find this here

What is Loops?

Loops is an email platform built specifically for SaaS companies, designed to facilitate easy email marketing by allowing the sending of marketing, transactional, and event-triggered emails. Loops offers features such as crafting emails using a WYSIWYG editor, managing contacts, and creating user journeys with branching logic based on contact properties .

Why would you consider Loops?

One might choose to use Loops over other services for its specialized features tailored towards SaaS businesses, such as the capability to track events and contact properties to enhance audience engagement and improve the user experience of an app . Loops allows for segmenting audiences and sending personalized emails, which can be essential for SaaS applications looking to maintain a high level of user engagement and tailored communication .

Additionally, Loops provides an SMTP service that is unique because it allows sending an API-like request body instead of traditional email content, which facilitates the use of Loops' rich editor to create and update email templates outside of Xano .

Loops emphasizes deliverability and sender reputation by offering guidance on setting up domain records and preferring sending from a subdomain, which can contribute to better email deliverability .

Overall, Loops positions itself as a platform that combines ease of email creation with powerful segmentation and event-driven capabilities, which can be particularly beneficial for SaaS companies looking to leverage their email marketing efforts to grow their business.

Whats included in the Function Pack?

Contact Management

Create Contact - Creates a contact

Update Contact - Update an existing contact by sending a request containing contact properties.

Delete Contact - You can delete a contact by using either their email or userId value.

Find Contact - This endpoint will return a list of contact objects containing all default properties and any custom properties. If no contact is found, an empty list will be returned.

List Custom Fields - This endpoint will return a list of contact objects containing all default properties and any custom properties. If no contact is found, an empty list will be returned.

Email Sending

Send Event - Send events to trigger emails in Loops.

Send Transactional Email - Send a transactional email to a contact.

Installing the snippet

To install the snippet head over to the snippet page and click "Add to your Xano account".

Sign in with your account and select which instance you would like to install the snippet to.

Then go into the instance you installed the snippet into, in the desired workspace head to the marketplace >purchased on the side menu and click install on the the Loops Snippet. This will add then functions, table and environment variable to your workspace.

You will then need to visit your workspace Settings and under System Variables click "Manage" and add your Loops API key to the "loops_api_key" environment variable and save. More details on where to find your Loops api key here

Your functions are now ready to be used in your function stack, head to custom functions when adding a logic block to your function stack, or better yet type in the functions name.

Tip: You are able to search Loops to return all of the custom functions.

Example

Adding a new contact to Loops as part of your Sign-up process:

  1. Add the "Create Contact" function to your sign-up email endpoint.

  1. Bind the input values to the appropriate item in the custom function.

That's it, you've now added a contact to Loops!

But say you now want to send this contact a welcome email, how can you do this?

This is where the power of Loops shines, head across to Loops and visit the Loops section. This is where you can program your email workflows. Under the Acquisition category we're able to add a new workflow to contact our users after they have signed-up.

Inside of the workflow we're able to define what we want to happen

In this scenario we have created a workflow in Loops that will automatically send a user a welcome email, 1 minute after they have been added as a contact. We're able to define when, who (through audience filters) and what we want to send (Email template editor).

This is just a simple scenario however you can get creative as you like to ensure that your apps communication to your clients is unique and informative.

Loops also have a heap of ready to use templates that you can use to quickly supercharge your app with email communication. Be sure to check them out!

Responses & Debugging

Each function contains an API request and has a response with two objects:

Result & Status

Errors can be determined by both the status (not 200) and an error message appearing within the result object.

Support & Improvement Requests

If you are having trouble using one of the functions or have a suggestion on how they could be improved please direct all of your feedback to this thread as a comment.

4