# RD Station

## **Introduction**

By integrating with RD Station, you'll be able to collect crucial information from your Lead during the flow and save directly to RD!

First, you must already have an RD Station account, having an account created just go to Cosmo and select the "Integrations" tab and choose the "RD Station" option.

![](/files/-LsqrMajRYTCAAVPSZ8x)

Here you will be able to **connect with your RD account**, just click "Start". Having this account connected, we can start connecting the points in the flow where we will save Lead information.

{% hint style="danger" %}
If the option does not appear, press Ctrl + Shift + F5 (Windows) or Cmd + Shift + R (Mac)
{% endhint %}

## **Saving Information**

Let's say you want to ask what color is your Lead's favorite. To do this, let's go to the message flow step where you want to get this information and click "[Save Reply](/bot-builder/conversation-flow/message.md)". Now let's create the favorite color field in the **User object** by clicking "New Field”

![](/files/-LsqrjTvcUp1jwLHkFJh)

{% hint style="danger" %}
Attention: Always create new fields in the User object, it is the only object that works with RD Station integration.
{% endhint %}

With this information saved, we should go to the RD Station platform and create a new field of the same name in the new Leads information. To create a custom field, select "Convert", then "Custom Field" and finally "Create Custom Field”.

![](/files/-Lsqs6K307qmuhDs0Vp7)

With this new field created, we can go back to the RD Station tab and select the "+ Add Field" option.

![](/files/-Lsqs_aFGwDbiXB_A0he)

Here, we will relate the field we created in CosmoBots with the field created in RD Station.

Ready! Having this, every time the user goes through that point of the flow, and tells us its favorite color, it will be computed in the Lead present in the RD Station.

{% hint style="danger" %}
Attention: It is always necessary to request the user's email, either in the form or during the flow. Email is the way RD registers a Lead.
{% endhint %}


---

# 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://help-en.cosmobots.io/bot-builder/integrations/rd-station.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.
