Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Mercaline2024/Ecomdrop-ia-connector-2/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Flows are automated workflows in Ecomdrop that trigger customer communications based on Shopify events. The connector supports two primary flow types:- Nuevo Pedido (New Order) - Triggered when a customer completes a purchase
- Carrito Abandonado (Abandoned Cart) - Triggered when a draft order is created
Prerequisites
Before configuring flows, you must set up your Ecomdrop API key in the store settings.
Verify Flow Loading
After saving, the app automatically fetches available flows from your Ecomdrop account
Flow Types
New Order Flow (Nuevo Pedido)
This flow triggers when a customer completes an order in your Shopify store. Webhook Trigger:ORDERS_CREATE (GraphQL)
Event Data Sent:
Shopify order GID (e.g.,
gid://shopify/Order/123456)Order display name (e.g.,
#1001)Order total price (decimal string)
Currency code (e.g.,
USD, COP)Customer information including:
id- Customer IDemail- Customer emailfirstName- First namelastName- Last namephone- Phone number
Array of ordered products with:
title- Product namequantity- Quantity orderedprice- Unit pricesku- Product SKUvariantId- Variant identifier
Delivery address details
Always
"order_created" for new ordersAbandoned Cart Flow (Carrito Abandonado)
This flow triggers when a draft order is created, which can represent an abandoned cart. Webhook Trigger:DRAFT_ORDERS_CREATE (GraphQL)
Event Data Sent:
Shopify draft order GID
Draft order name/number
Cart total value
Currency code
Customer information (if available)
Products in the cart
Customer email for recovery
Always
"draft_order_created" for abandoned cartsSetting Up Flows
Step 1: Access Flow Configuration
Step 2: Assign Flow for New Orders
Select Flow
In the “Nuevo Pedido” dropdown, choose the flow you want to trigger when orders are created
Review Flow
Ensure the selected flow is designed for order confirmations or post-purchase communications
Only flows available in your Ecomdrop account will appear in the dropdown.
Step 3: Assign Flow for Abandoned Carts
Flow Data Structure
Flows are retrieved from Ecomdrop with the following structure:Flow Caching
To optimize performance and reduce API calls:Cache Behavior
Cache Behavior
- Cache Duration: 60 seconds (1 minute)
- Storage: In-memory cache keyed by API key
- Cache Invalidation: Automatic on API key update
- Manual Refresh: Click “Actualizar Conexión y Refrescar Flujos”
Clearing Flow Cache
The cache is automatically cleared when:- You update your Ecomdrop API key
- You click the “Sync Flows” button (if available)
- The cache expires after 60 seconds
Testing Flows
Testing New Order Flow
Create Test Order
In your Shopify admin, create a test order:
- Go to Orders > Create order
- Add products and customer information
- Complete the order
Testing Abandoned Cart Flow
Create Draft Order
In Shopify admin:
- Go to Orders > Drafts
- Create a new draft order
- Add products and customer email
- Save the draft (don’t send invoice)
Webhook processing happens asynchronously. Allow a few seconds for the flow to trigger.
Flow Triggering Logic
The flow triggering process follows these steps:Advanced Configuration
Callback URLs
For order flows, the app can configure a callback URL for Ecomdrop to notify when processing completes:Callback functionality requires
SHOPIFY_APP_URL environment variable to be set.Order Tagging
When a flow fails to trigger, the app automatically tags the order withecomdrop-error for easy identification and reprocessing.
Troubleshooting
Flows Not Loading
Flows Not Loading
Problem: Dropdown is empty after entering API keySolutions:
- Verify API key is correct
- Check Ecomdrop account has active flows
- Review console logs for API errors
- Wait 60 seconds and refresh (cache expiry)
- Click sync/refresh flows button
Flow Not Triggering on Order
Flow Not Triggering on Order
Problem: Order created but flow doesn’t executeSolutions:
- Check Configuration > Status tab to verify flow assignment
- Review app logs for webhook processing
- Verify webhooks are registered in Shopify settings
- Ensure the flow is active in Ecomdrop
- Check for errors in Ecomdrop panel logs
Wrong Data in Flow
Wrong Data in Flow
Problem: Flow receives incorrect or missing dataSolutions:
- Check webhook payload in app logs
- Verify GraphQL webhook format compatibility
- Ensure customer information is complete in Shopify
- Review data transformation in
webhooks.orders.create.tsx
Multiple Flow Executions
Multiple Flow Executions
Problem: Flow triggers multiple times for one orderSolutions:
- Check Shopify webhook history for duplicates
- Verify app deployment (avoid multiple instances)
- Review Ecomdrop flow configuration for loops
- Check for manual flow triggers in Ecomdrop panel
Best Practices
Test Before Production
Always test flows with draft orders before going live with customer orders
Monitor Logs
Regularly check app logs to ensure webhooks are processing correctly
Design for Failures
Build flows that handle missing or incomplete customer data gracefully
Use Clear Names
Name your Ecomdrop flows clearly to distinguish between order types and purposes
API Reference
Get Flows
Trigger Flow
Next Steps
Store Settings
Configure your API keys and integration credentials
Webhooks
Learn about webhook endpoints and event handling