Language: English
In this tutorial we set up an automation that posts a message to a Google Chat space each time a new record is added to a form — directly from ActivityInfo, with no intermediary workflow tool.
We assume the role of a coordinator whose team works in a Google Chat space. The team tracks projects in a Projects form, and wants each newly submitted project announced in the space as it arrives.
What you need
- A form to watch. Ours is a Projects form with a text field Project Name with the code
NAMEand a reference field Partner with the codePARTNER, but any form will do — adjust the field references to yours. - Permission to design the database in ActivityInfo.
- A Google Chat space in which you can add webhooks. Incoming webhooks are a Google Workspace feature; a space administrator may need to allow them.
Step 1: Create an incoming webhook in Google Chat
- In Google Chat, open the space that should receive the messages.
- Click the space name, then Apps & integrations.
- Under Webhooks, select Add webhooks.
- Name the webhook, for example "ActivityInfo", and save.
- Copy the webhook URL — it begins with
https://chat.googleapis.com/v1/spaces/....
Step 2: Add the automation
- In ActivityInfo, open the database, select the Projects form, and select Automations in the form's detail pane.
- Select Add automation and name it "Announce new projects in Chat".
- Select Click here to get started and choose the On record added trigger.
- Label the trigger, select Select form, choose the Projects form, confirm, and select Done.
Step 3: Add the webhook step
- Select Add a new step, then Action, then Fire webhook.
- Give the step a label, for example "Post to Chat space".
- Paste the Google Chat webhook URL into the Webhook URL field.
- Set the Payload format to Custom: Google Chat expects a message in its own JSON shape, and the custom format lets us write it exactly.
Step 4: Write the message
Select Edit payload.
Enter the message body Google Chat expects — a JSON object with a single
textproperty. The${...}references are filled in from the record that fired the automation; the field list on the right inserts them for you:{"text": "📋 New project submitted: *${NAME}* by ${PARTNER.NAME}, added by ${_user.name}"}Google Chat renders
*asterisks*as bold. Values are automatically escaped for JSON, so project names containing quotes or line breaks cannot break the message.Select Done to close the payload editor, and Done again to close the step.
Select Save. The automation is now active.
Step 5: Test
- Add a test record to the Projects form.
- Within moments, the message appears in the Google Chat space with the project's details filled in.
Going further
- Announce only some projects: add a filter step between the trigger and the webhook — for example
CONTAINS(SECTORS, "Health")to announce only health-sector projects. - Announce status changes instead: use the On record edited trigger with the filter
STATUS != _previous.STATUS, and include both values in the message:${_previous.STATUS} → ${STATUS}. - Any formula works inside
${...}:${IF(BUDGET >= 100000, '🔴 large', 'standard')}.
Related articles
- Webhook step — all payload formats in detail
- Send a message to Microsoft Teams when a record is added
- Incoming webhooks in Google Chat (external link)