Label Google Cloud Pub/Sub feedback with Vertex AI

Verify each feedback reference in BigQuery and publish its sentiment label to the reporting topic without the original text.

13 stepsProduct and engineering

Free to start, no card required.

How it works

  1. When this happens

    Watch incoming feedback references

    GCloud Pub/Sub

  2. Step 1 · Code

    Check the feedback reference

  3. Step 2

    Check the source record

    Follows the first path that matches

    • Complete record

      1. Step 3 · Google BigQuery

        Read approved feedback from BigQuery

      2. Step 4 · Code

        Read the approved feedback text

      3. Step 5

        Check the source record

        Follows the first path that matches

        • Complete record

          1. Step 6 · Storage

            Check for an earlier delivery

          2. Step 7

            Check delivery history

            Follows the first path that matches

            • First delivery

              1. Step 8 · Google Vertex AI

                Classify the feedback sentiment

              2. Step 9 · Code

                Allow a known sentiment label

              3. Step 10

                Check the source record

                Follows the first path that matches

                • Complete record

                  1. Step 11 · GCloud Pub/Sub

                    Publish the feedback label

                  2. Step 12 · Storage

                    Save the delivery receipt

                • Otherwise

                  Nothing happens

            • Otherwise

              Nothing happens

        • Otherwise

          Nothing happens

    • Otherwise

      Nothing happens

Before you start

Select separate input and output Pub/Sub topics and give the input subscription a new name. Publish feedback.created events with a feedback_id matching a unique row in BigQuery with feedback_text and approved_for_analysis columns. Select the BigQuery table and a Vertex AI region and Gemini model approved for the feedback.

Accounts to connect

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