Text buyers when a Square pickup is ready with Contiguity

Send one pickup-ready text for an opted-in Square order after confirming its location, pickup recipient and prepared fulfillment.

16 stepsOperationsE-commerce

Free to start, no card required.

How it works

  1. When this happens

    Receive a changed Square order

    Square

  2. Step 1 · Code

    Set the pickup location and SMS sender

  3. Step 2

    Check the order reference

    Follows the first path that matches

    • Changed order reference

      1. Step 3 · Square

        Read the pickup order from Square

      2. Step 4 · Code

        Verify pickup readiness and consent

      3. Step 5

        Check this pickup notification

        Follows the first path that matches

        • One recent pickup with SMS consent

          1. Step 6 · MySQL

            Claim the single pickup text

          2. Step 7 · Code

            Check whether this run owns the send

          3. Step 8

            Check for an earlier pickup text

            Follows the first path that matches

            • First sender for this order

              1. Step 9 · Square

                Recheck the pickup before texting

              2. Step 10 · Code

                Confirm the same pickup and recipient

              3. Step 11

                Check the buyer’s current consent

                Follows the first path that matches

                • Pickup and permission remain current

                  1. Step 12 · Contiguity

                    Text the pickup recipient

                  2. Step 13 · Code

                    Confirm the SMS provider accepted it

                  3. Step 14 · MySQL

                    Save the provider’s text reference

                  4. Step 15 · Code

                    Confirm the pickup receipt was saved

                • Otherwise

                  Nothing happens

            • Otherwise

              Nothing happens

        • Otherwise

          Nothing happens

    • Otherwise

      Nothing happens

Before you start

Choose one Square location, enter its ID and customer-facing name and set your leased Contiguity sender number. Have checkout maintain pickup_sms_opt_in=yes and pickup_sms_phone in the order metadata for buyers who choose these texts, clear the consent on withdrawal and turn off other pickup texts for this channel. Create MySQL table pickup_text_receipts with order_id VARCHAR(128) PRIMARY KEY and message_id VARCHAR(160) NULL, and have staff reconcile rows without a message ID before trying another send.

Accounts to connect

See all 419 in Operations

Your first automationstarts with one sentence.

Start free with 1,000 credits, no card needed. Rather have it done for you? Our team builds it.

Use template