Route PollyBot installation requests by service ZIP code

Put new installation requests into the branch’s MySQL queue only when their US ZIP code has an active service territory.

15 stepsSalesOperations

Free to start, no card required.

How it works

  1. When this happens

    Receive a new chat inquiry

    PollyBot AI

  2. Step 1 · Code

    Set the installation chatbot

  3. Step 2

    Check the chatbot reference

    Follows the first path that matches

    • Lead belongs to the installation bot

      1. Step 3 · PollyBot AI

        Read the lead from PollyBot

      2. Step 4 · Code

        Check service type and US ZIP code

      3. Step 5

        Check the service request

        Follows the first path that matches

        • New installation with a US ZIP code

          1. Step 6 · MySQL

            Read the active service territory

          2. Step 7 · Code

            Select the serving branch

          3. Step 8

            Check branch coverage

            Follows the first path that matches

            • One active branch serves this ZIP

              1. Step 9 · PollyBot AI

                Recheck the installation request

              2. Step 10 · Code

                Confirm the request still qualifies

              3. Step 11

                Check for edits or another assignee

                Follows the first path that matches

                • Same request still needs routing

                  1. Step 12 · MySQL

                    Route the request to its branch

                  2. Step 13 · MySQL

                    Read the saved dispatch assignment

                  3. Step 14 · Code

                    Confirm the saved branch assignment

                • Otherwise

                  Nothing happens

            • Otherwise

              Nothing happens

        • Otherwise

          Nothing happens

    • Otherwise

      Nothing happens

Before you start

Register the PollyBot Lead Created webhook and set its chatbot ID in the trigger and configuration step. Capture service_country, service_zip and service_type as lead custom fields, using US, the five-digit ZIP as text and installation for this queue. In MySQL, create installation_territories(zip_code CHAR(5) PRIMARY KEY, branch_id BIGINT, active BOOLEAN) and installation_dispatch(lead_id VARCHAR(64) PRIMARY KEY, chatbot_id VARCHAR(64), zip_code CHAR(5), branch_id BIGINT), then add the branches and ZIP codes you serve.

Accounts to connect

See all 144 in Sales

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