Skip to content
Digital Inspiration DocsDigital Inspiration Docs

The Slack task posts a message to a Slack channel each time someone submits your Google Form. Use it to tell your team about a new booking, order or support request the moment it arrives, with the answers in the message.

  • Install Document Studio and open your Google Form.
  • Sign in to the Slack workspace that has the channel. Slack may ask a workspace admin to approve the Document Studio app.

Maya Chen runs workshops at Willow Lane Studio. Guests book a seat with a Google Form, and her front desk team follows the #bookings channel in Slack. Each booking should appear there as a message like this:

New booking: Daniel Okafor, Weaving for Beginners on Saturday, January 10.
Email: daniel.okafor@example.net
  1. Open your Google Form and launch Document Studio. Create a workflow, or open one you have, and go to the Tasks step.

  2. Under Choose a task, click Slack. If the workflow already has tasks, click Add Another Task first.

    The Choose a task list on the Tasks step, with Slack among the tasks

  3. Click Link your Slack account. A Slack window opens. Choose your workspace and click Allow. Document Studio uses this link to list your channels and post messages. It doesn’t read or change your other Slack messages.

  4. Under Post Message to:, choose the channel, like #bookings. If a new channel is missing, click Refresh.

  5. In Slack Message, type the message. Type a marker in double braces wherever an answer from the form should go:

    New booking: {{First Name}} {{Last Name}}, {{Workshop}} on {{Session}}.
    Email: {{Email Address}}

    To pick a marker from a list, click the small list icon at the top-right corner of the box. It shows every question of your form, plus details like Response Date and Response Edit URL.

    The Slack task with a channel under Post Message to, a message with markers, and the list of markers open

  6. Click Preview, then click Test Task. Document Studio posts a real message to the channel with sample data from the first response. Check the message in Slack.

  7. Click Done, then save the workflow.

For Daniel’s booking, the team sees New booking: Daniel Okafor, Weaving for Beginners on Saturday, January 10. in #bookings.

On the Save step of the workflow, select Run on Form Submit. Document Studio then posts a message within about a minute of each new response.

To post messages for responses that arrived before you made the workflow, click Run Workflow and choose their rows in the response sheet. See run a workflow.

Slack reads a few symbols in the message as formatting:

You type Slack shows
*New booking* New booking in bold
_paid_ paid in italics
<https://example.com/orders/{{Order Number}}|View the order> The words View the order, linked to that response’s order
<!here> A mention that notifies the active members of the channel
<!channel> A mention that notifies every member of the channel

Typing @here as plain text doesn’t notify anyone. Use <!here> instead. Each line break in the box starts a new line in Slack.

The message can hold Scriptlets for text that changes with the answers. This message flags large group bookings:

New booking: {{First Name}} {{Last Name}} for {{Seats}} seats.
{% if {{Seats}} > 4 %}*Group booking.* Please call to confirm.{% endif %}
  • The message can’t be empty. A message made only of markers fails with No message specified for a response where every one of them is empty.
  • Each response posts one message. To post to two channels, add a second Slack task.
  • Slack messages are text. QR codes, images and files from Embed markers are left out. To share a file the workflow made, post its Google Drive link.
  • The task’s status column in the form’s response sheet shows Message #… sent for each message, with the Slack message number.
  • The message is posted by the Document Studio app, not by your Slack user.

A private channel appears only after the Document Studio app is a member. In Slack, open the channel, click its name, go to Integrations and add the app. Then click Refresh in the task. Archived channels never appear.

Sorry, no channels were found in your Slack account

Section titled “Sorry, no channels were found in your Slack account”

You linked a workspace with no channels the app can see. Click Refresh and link the right workspace.

The status column shows Error: invalid_auth or token_revoked

Section titled “The status column shows Error: invalid_auth or token_revoked”

The link to Slack has expired or was removed in Slack. Open the Slack task, link your Slack account again, choose the channel and save the workflow.

The status column shows Error: channel_not_found or not_in_channel

Section titled “The status column shows Error: channel_not_found or not_in_channel”

The channel was deleted or archived, or it’s a private channel that the app has left. Add the app to the channel again, or choose another channel in the task.

The marker doesn’t match a question title of your form. Pick the marker from the list in the Slack Message box so the spelling matches.