> 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

### 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="/files/lQN3WAInWOhvuiqmFOOv" alt=""><figcaption></figcaption></figure>

### Slack

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

<figure><img src="/files/t8XmrN2jGiUOxXUg8OvT" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/GwZxbaj5TKLTKJ7dUWtL" 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="/files/tkb2jfJdgUpNQASfPuk0" 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="/files/H2zMAf1mRfVVNQXjo27c" 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="/files/Njb4zSM2q7Elgqu0KhoA" 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="/files/iDtv8mkOxSckkxkfFivL" 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="/files/MQdyK9akT2yEFejWgArL" 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 dynamically by asking a question.

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

```
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=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
