New FeatureEnable forms to be filled out by voice!

Back

Formyra Shopify Integration

Shopify

Formyra

Integrating Formyra with Shopify: A Step-by-Step Guide

November 4, 2026

Imagine a cart abandonment email that arrives with the exact items a shopper left behind, plus a friendly follow-up that asks one clarifying question before offering a discount. That’s the sort of automation you can build when you’re integrating Formyra with Shopify.

If you searched for "Integrating Formyra with Shopify," the short answer is yes: you can connect Formyra forms to Shopify via workflows and webhooks to create customers, tag orders, generate draft orders, and trigger post-purchase automations. Below is a practical, realistic walkthrough you can follow today.

Integrating Formyra with Shopify: the quick plan

Start with a clear use case. Common ones are cart recovery, post-purchase feedback, returns and exchanges, pre-order interest capture, and customer support intake tied to orders.

  • Decide what you want the form to do in Shopify (create a customer, attach a tag, make a draft order).
  • Map the fields you need (email, name, cart token, order ID, UTM parameters).
  • Identify the required Shopify API scopes—most workflows need write_customers and write_orders.

Knowing this upfront keeps the integration clean and avoids unnecessary API permissions.

1. Build the Formyra form

Create a Formyra form that collects the inputs you planned. Add hidden fields for data you’ll pass from Shopify, like cart_token or order_id. Use Formyra’s AI-driven conditional logic to ask follow-up questions based on the shopper's answers, so your submissions are higher quality.

Enable spam filtering so false or bot submissions don’t trigger workflows in Shopify.

2. Embed the form in Shopify

Drop the Formyra embed on a Shopify page, product template, or a custom section in your theme. For most stores you’ll paste the embed snippet into an Online Store > Themes > Edit code section or add it through a page/section that accepts custom HTML. If you need the form to appear in the cart drawer, add the snippet to the cart template.

Tip: include hidden inputs or use JavaScript to pass dynamic values (cart items, cart token, current URL, UTM) into the form at time of submission. That preserves context for later automation.

3. Connect Formyra workflows to Shopify

Formyra workflows can call external APIs. Use that to hit the Shopify Admin API and perform actions you need. Create a custom app in Shopify Admin to get an access token with proper scopes, or use a middleware service if you prefer not to expose Admin credentials directly.

Example API call you might trigger from a Formyra workflow: POST a customer to Shopify using the REST Admin API:

POST https://{shop}.myshopify.com/admin/api/2024-07/customers.json

Headers: Authorization: Bearer {access_token}, Content-Type: application/json

Body: { "customer": { "email": "{email}", "first_name": "{first_name}", "tags": "formyra,lead" } }

Replace placeholders with your form fields using Formyra’s workflow template variables. If you need to create a draft order for cart recovery, call the draft orders endpoint and attach the cart items you captured from the page.

4. Handle webhooks and verification

If Shopify needs to notify Formyra or your middleware (for example, when an order is paid and you want to close a support ticket), configure Shopify webhooks and verify them server-side. Shopify sends an HMAC header you should verify with your app secret to avoid spoofed requests.

Formyra can accept incoming webhooks into a workflow trigger. Verify the payload, then map it to updates inside Formyra (mark submission handled, send internal notification, etc.).

5. Keep data tidy: customers, tags, and metafields

Decide where you’ll store cross-system context. Common patterns:

  • Add a tag to the Shopify customer like "formyra:lead" so your CRM and marketing automations can filter these contacts.
  • Store the Formyra submission ID in a customer metafield to link back to the original responses.
  • Create a draft order or cart recovery flow with the captured items and send a personalized email from Shopify or a connected ESP.

These patterns make future automation simpler and debuggable.

6. Test, monitor, and iterate

Test the entire chain: submit the form, confirm the customer is created or updated in Shopify, verify tags and metafields, and track any emails or draft orders. Use Shopify’s API logs and Formyra’s workflow run history to troubleshoot failed calls.

Common issues to watch for: missing scopes on your Shopify app, field mismatches (email format), and rate limits if you send many requests at once. Shopify applies API rate limits; batch operations or queueing from Formyra workflows can help.

Troubleshooting and security notes

  • Never embed Admin API credentials in client-side code. Use a server or middleware to hold secrets.
  • For quick automations you can use Formyra + Zapier or Make as an intermediary if you don’t want to build a custom app immediately.
  • When recovering carts, include a clear CTA and the cart contents. Personalization improves recovery rates; a 2022 Baymard Institute study notes that recovery messaging that references cart contents performs significantly better, so context matters.

Integrating Formyra with Shopify isn’t magic. It’s a series of predictable steps: capture the right data, pass it securely, and automate the actions that matter. Do that, and a simple form becomes a point of conversion, a customer support intake, or a win-back engine.

Sign up now to experience the next generation of contact forms with Formyra!