Cloud Firestore icon

Cloud Firestore

Starts a workflow based on Firestore events

On Document Created

AI-generated

Summary

Starts a workflow when a new document is created in a specified Cloud Firestore collection or document.

Inputs

  • path (required) — Path to the collection or document. For 'On Document Created', this is typically a collection path (e.g., 'users') to trigger on any new document, or a specific document path to trigger only when that document is created.

Output shape

a list of items, each containing the document ID, path, and all fields converted to standard JSON types (Dates, GeoPoints, Arrays, Maps are serialized).

The trigger fires only for 'added' changes. The source converts Firestore Timestamps to ISO strings, GeoPoints to {latitude, longitude}, and recursively serializes nested Maps/Arrays.

Examples

Example 1: Monitor a users collection for new signups

Path: 'users'

Example 2: Trigger when a specific configuration document is initialized

Path: 'config/settings'

Discussion