Map ChatNode chat starts by hour in MySQL

Save a daily sample of chat starts by local hour so support planners can see when visitors first ask for help.

12 stepsOperations

Free to start, no card required.

How it works

  1. When this happens

    Sample the latest chat sessions

    Schedule

  2. Step 1 · Code

    Set the support bot and time zone

  3. Step 2 · MySQL

    Prepare the private sampling table

  4. Step 3 · MySQL

    Check for today’s saved sample

  5. Step 4 · Code

    Check if a sample is needed

  6. Step 5

    Check today’s sample status

    Follows the first path that matches

    • There is no sample for this day

      1. Step 6 · ChatNode

        Read up to 100 recent conversations

      2. Step 7 · Code

        Count first visitor messages by hour

      3. Step 8

        Check for visitor conversations

        Follows the first path that matches

        • At least one visitor started a chat

          1. Step 9 · MySQL

            Store the first sample of the day

          2. Step 10 · MySQL

            Read back the hourly sample

          3. Step 11 · Code

            Confirm the saved hourly totals

        • Otherwise

          Nothing happens

    • Otherwise

      Nothing happens

Before you start

Set your support bot ID and IANA time zone, authorize its conversation history for this restricted project and configure run-data retention. Give MySQL access to create and read chatnode_hour_samples and insert daily snapshots. The report counts each of the latest 100 sessions once at its first visitor message, stores 24 hourly counts and records the date range of the sample.

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