> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/classic/fastn-ucl/getting-started/how-ucl-works-in-real-scenarios/create-a-google-doc-and-share-it-to-slack-using-ucl.md).

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

In this guide, you’ll create a Google Doc with some content and automatically share it to a Slack channel. We’ll use Fastn to connect the two apps and make the workflow run in just a few steps.

### 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%2Fgit-blob-ba19b796493c7c2a3909793f756b253386845bf5%2Fimage.png?alt=media" 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%2Fgit-blob-204b4043a26f5fbf8c94cfbfe350394af02537c7%2Fimage.png?alt=media" 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%2Fgit-blob-dc89dc386ff132e44fd8088319ae63ac728cdf5f%2Fimage.png?alt=media" 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%2Fgit-blob-6e20089a2e341054076b74e586db857230bfea8e%2Fimage.png?alt=media" 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%2Fgit-blob-14c2d536e9afb8d0ba5d0b538b79de5c53fcfe3f%2Fimage.png?alt=media" 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%2Fgit-blob-de0d03e98e08049cb334b3451bd9d8ac55fd970f%2Fimage.png?alt=media" 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%2Fgit-blob-ebdabb85423c555867a89fb92df366e6b5072029%2Fimage.png?alt=media" 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%2Fgit-blob-321323c4029296096807f2cef6edaf121edd9b20%2Fimage.png?alt=media" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
