# Create a Google Doc and share it to Slack - using UCL

### Google Docs

* You need to authenticate your Google account, after which the Google Docs App will appear as **Connected**.
* From Select Tools, you can enable the **Create Doc** Action.

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2FCB0VsCyaV51F6maf57dk%2Fimage.png?alt=media&#x26;token=3fb7f3ee-844c-4006-8d1b-57772b3ce682" alt=""><figcaption></figcaption></figure>

### Slack

* Similarly, you need to connect the Slack App and enable the **Send Message** Action.

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2FwLdVWclVP3vTBYpMaN6a%2Fimage.png?alt=media&#x26;token=d4812bef-ae4c-4548-b4ca-fb5bfa56119e" alt=""><figcaption></figcaption></figure>

* You will now be able to see the selected apps with enabled actions on your dashboard.

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2FbcACkZKmM09XS3fp9UBv%2Fimage.png?alt=media&#x26;token=f3f93a59-644f-46fe-ac31-b54db039cea2" alt=""><figcaption></figcaption></figure>

### Test in Playground

* You can use the **Playground** (from the three-dot menu, top right) in your dashboard to test all your connected apps.

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2F05yNwOzF3h8htQUc1YsG%2Fimage.png?alt=media&#x26;token=92190421-2c14-4d75-af55-b79b7eaffbf8" alt=""><figcaption></figcaption></figure>

### Creating a Google Doc and Sending it to Slack

* In the AI Assistant, enter the prompt describing the action you want to perform. For example:

> *Create a Google Doc titled "MCP Server"*

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2FwlDMEJt9CIdfoL67Cr2a%2Fimage.png?alt=media&#x26;token=dc9510b7-97bf-40a6-87d1-11820e08abdd" alt=""><figcaption></figcaption></figure>

Next, you can give a command to add content to the document or send it to a Slack channel right away.

> *Send the doc to slack channel \*channel\_name\**

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2FQ5P9Z7cf2U6JIPoV8Krg%2Fimage.png?alt=media&#x26;token=8d16b1f6-5d0f-4de2-b2fb-b86380debd95" alt=""><figcaption></figcaption></figure>

> For every command prompt, the assistant would ask you to confirm execution by clicking on the **Run Tool** button.

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2FIFlhHTkWXbToenYsXFFS%2Fimage.png?alt=media&#x26;token=95ebab2a-53b8-4d6e-837c-dce05a86802b" alt=""><figcaption></figcaption></figure>

Once successful, you will see a success message in the assistant, and the document will be sent to the potential Slack channel.

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2FgnEMfiTRAkBmmj3NzNkb%2Fimage.png?alt=media&#x26;token=3d6be5a3-e291-496c-953e-891d117ba5dd" alt=""><figcaption></figcaption></figure>

> This setup allows you to automate and streamline document creation and sharing it across different platforms using natural language, making workflows faster and more efficient.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fastn.ai/ai-agent-integrations-ucl/getting-started/how-ucl-works-in-real-scenarios/create-a-google-doc-and-share-it-to-slack-using-ucl.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
