> For the complete documentation index, see [llms.txt](https://docs.makerobos.com/frontman-enterprise-chatbot-platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.makerobos.com/frontman-enterprise-chatbot-platform/story-builder/cards/utility-cards/google-sheets.md).

# Google Sheets

This guide will walk you through exporting user data directly to a new Google Sheet. By leveraging Google Sheets connection capabilities, you can easily store and manage your user information within a familiar and collaborative environment.

<figure><img src="/files/d5dHDbImbAS1JXV2I3y8" alt=""><figcaption><p>Connect your Gmail account and give access to Google sheets</p></figcaption></figure>

<figure><img src="/files/XKWnDMtGypf2ZTOIXZNN" alt=""><figcaption><p>Connected successfully with Google Sheets</p></figcaption></figure>

<figure><img src="/files/1vRDdUgTBxNFi8Ejisgr" alt=""><figcaption><p>Add Attributes</p></figcaption></figure>

### **Prerequisites:**

* A Google Account
* Access to the application/platform where you want to export user data

### **Steps to integrate:**

1. **Connect Your Google Account:** Within the application or platform where you want to export data, locate the option to connect your Google account. This might be found under settings, integrations, or a dedicated export section. Upon selecting this option, you'll be prompted to sign in with your Google account.

   <figure><img src="/files/sUrhGeD0siFBNS2Q0cHW" alt=""><figcaption></figcaption></figure>
2. **Create a New Spreadsheet:** Once connected, you'll be presented with the option to create a new Google Sheet to store the exported data. This creates a blank spreadsheet within your Google Drive specifically for this purpose.

   <figure><img src="/files/YdQubrE5GY8elHi0spbB" alt=""><figcaption></figcaption></figure>
3. **Select User Attributes:** Choose the specific user attributes (data points) you want to export to the spreadsheet. This selection process will vary depending on the application, but commonly includes options like names, email addresses, timestamps, and user IDs.

{% content-ref url="/pages/zFy1Veslzw6WZHIxShUT" %}
[User Attributes](/frontman-enterprise-chatbot-platform/audience/user-attributes.md)
{% endcontent-ref %}

4. **Initiate Export:** Once you've selected the desired attributes, initiate the export process. The application will gather the user data and populate the newly created Google Sheet.

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

### **Connection Details:**

This connection utilizes Google's OAuth 2.0 authorization framework, ensuring secure and permission-based data access. For developers looking to implement this functionality, refer to the dedicated setup documentation (link: Setup here). This documentation provides detailed instructions on configuring OAuth 2.0 for Google Sheets integration, including the required scopes (permissions) for data access.

### Advanced Customization (Optional)

This guide covers the basic export, but there's also an option for more advanced customization. Let's take an example of new user onboarding and you want to feed data in your HR google sheet so for now we take 3 field which are Employee Name, Employee ID and Employee Designation. Let's take them in the user attributes of Employee Name - {{emp\_name}}, Employee ID - {{emp\_id}}, Employee Designation- {{emp\_designation}}

1. Using user attributes you set can set key value pairs like this {{emp\_id}} = John, {{emp\_id}} = 002 and {{emp\_designation}} = Product Manager.

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

2. These placeholders are then passed to your Google Sheet as parameters, filling the first row with user information.

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

3. Than, you can connect another Google Sheet through auto suggest card with its own attribute(denoted by "make"). This allows you to combine data from both sources into a single table in a row-column combination in a tabular way using formulas like {{make}} will be at 0 index and will give headers to the sheet. Than we can pass the values which we got from user attributes like this {{make\_emp\_name}} {{make\_emp\_id}} {{make\_emp\_designation}}.

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

4. Once you are all set you can run your chatbot and add a "BOT SAYS" card to see the recently passed inputs in chatbot too once you run it.

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

5. Your output will have headers and the recently added entry will be filled into that so you can easily maintain your sheets without thinking about personally keeping a track over it.

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

While this advanced option offers more flexibility, the basic export is a great way to get started with managing user data in Google Sheets.


---

# 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:

```
GET https://docs.makerobos.com/frontman-enterprise-chatbot-platform/story-builder/cards/utility-cards/google-sheets.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.
