Skip to main content

GCP Pub/Sub Trigger

The GCP (Google Cloud Platform) Pub/Sub Trigger fires a workflow whenever a message is sent to one of the topics defined on a given Google Pub/Sub integration or when the integration receives a connection event.

Google Pub/Sub Trigger

Node Properties

The GCP Pub/Sub Trigger requires choosing a Pub/Sub integration, as well as at least one of the following events on which to fire the trigger:

  • Trigger on a connection
  • Trigger on a message (checked by default)
  • Trigger on a disconnection
  • Trigger on a failure to connect

Payload

The payload will include the received message in the data field. In the general case, a Google Pub/Sub Trigger workflow payload will look like the following:

  • {} 12 keys
    • "555555555555eeeeeeeeeeee"
    • "My Great Application"
    • {} 9 keys
      • {} 1 key
        • "my message"
        • "Connection Lost"
        • "Unauthorized"
        • "Google Cloud Pub/Sub message ID"
        • "Google Cloud Pub/Sub message timestamp"
        • "myGoogleTopic"
        • [] 2 items
          • "connect|message|disconnect|failure"
        • "333333333333cccccccccccc"
        • "My Great Workflow"
        • "myFlowVersion"
        • {} 3 keys
          • "<ID of the integration>"
          • "integration"
          • Tue Aug 19 2025 14:48:10 GMT+0000 (Coordinated Universal Time) (Date object)
          • "<ID of the integration>"
          • "integration"

        In addition to the standard workflow payload information, the payload will include an object in the data field, which will include the following properties:

        • attributes: A key/value map of attributes passed with the message
        • data: The message that was published on the topic
        • id: The Google Cloud Pub/Sub message ID
        • timestamp: Google Cloud Pub/Sub message timestamp
        • topic: The topic on which the message was received

        Was this page helpful?


        Still looking for help? You can also search the Losant Forums or submit your question there.