Skip to content
gosendly

Integrations

Gosendly and Shopify Flow

Shopify Flow is Shopify's automation app. With its “Send HTTP request” action it can call a Gosendly flow's trigger address: that way a store event, filtered by your conditions, becomes a WhatsApp message.

What it does

Flow watches your store (an order created, a tag added to a customer, a carrier update), checks the conditions you choose and sends Gosendly the customer's phone number with the order details. Gosendly starts the flow and sends the messages. It works alongside the direct Shopify connection, it doesn't replace it.

Shopify Flow
Gosendly
WhatsApp
Shopify Flow and Gosendly talk to each other on their own: data flows without copying it by hand, and the right messages go out on WhatsApp.

How to connect it

  1. 1

    Create the address in Gosendly

    Create an automation with the “From another tool” trigger (in the app: *Da un altro strumento*), then in the builder open “Trigger address”, click “Create the address” and copy it.

  2. 2

    Save it as a secret in Flow

    In Shopify Flow's settings, save the address as a secret, for example sendly_confirmation: it's no longer visible in Flow and doesn't show up in the run logs. You need the permission to manage connections and secrets.

  3. 3

    Build the workflow

    Choose the trigger, for example “Order created”, add your conditions and then the “Send HTTP request” action: HTTP method POST, URL {{secrets.sendly_confirmation}}, Header Content-Type with the value application/json.

  4. 4

    Write the body and test

    In Body put the JSON with the phone number and the order details (example below), turn on the workflow and place a test order: in Gosendly, under “Calls received”, you see the result.

The request body

Gosendly wants the phone number in “phone” and the message values in “data”. With Flow's variables and the json filter, which adds the right quotes, the body can be: “{"phone": {{order.phone | json}}, "data": {"order": {{order.name | json}}}}”. In the Gosendly flow, the order number is used as {order}.

Watch out: on Shopify the order's phone is empty if the customer didn't enter one at checkout. Add a condition in Flow that checks it, otherwise Gosendly replies “Invalid number”.

Gosendly's flow builder with the trigger from another tool, such as Shopify Flow.
App screenshot with the sample store.

When Flow makes sense

The direct Shopify connection, on paid plans, already brings orders, carts, shipments and customers into Gosendly. Flow is for when you want a rule of your own:

  • Only orders with a certain product, tag or total, for example personalized products, with a flow that asks for the text to print.
  • Updates from external shipping services, with “Fulfillment event created”: in transit, picked up, delivered.
  • A tag added to a customer, such as “VIP”, that sends a thank-you to those who have given consent.

What to know about Shopify Flow

Flow is a free Shopify app for the Basic, Grow, Advanced and Plus plans, but the “Send HTTP request” action is only available on Grow, Advanced and Plus. Flow waits up to 30 seconds for the response; on errors you can choose to retry for up to 24 hours, mark the step as failed or ignore it. For data errors, like a wrong number, retrying doesn't help.

If your Shopify plan doesn't have the HTTP action, you can do the same things with Zapier or with Gosendly's automations on order events.

Frequently asked questions

Do I need a paid Gosendly plan?

Not for the trigger address: it's available on every plan, on Free with 3 automations. The direct Shopify connection and order-based triggers are included in all paid plans.

Can I send a promotion from Flow?

Yes, if the Gosendly flow uses a marketing template and the customer has given consent: those who haven't are skipped, and the call result says so. Quiet hours and the message cap also apply.

Where do I find the names of Flow's variables?

In the action's Body field, Flow suggests the trigger's variables, with names like order.name or order.phone. Use them with the json filter to get valid JSON.

What if the customer is already in the flow?

By default they don't enter again, and the result says so. If you send a message for every order, choose “Re-enter, even twice at once” in the Gosendly flow settings.

Keep reading

Similar integrations

See the map of all integrations

Sources

Sign-ups open soon

Leave your email and we'll tell you when we launch: then you create your account and find a sample store full of data to try right away.

  • We'll write to you once
  • Every feature when we open
  • Sample store already full of data