# Configuration

We've streamlined the setup process to make it as smooth as possible. We've pre-configured several environment variables that apply universally to all Frigg users upon installation. All that's left for you to do is to add your personal HubSpot credentials to connect to your app:

### Set up your HubSpot App

To add your HubSpot credentials, open the `.env` file located in `backend/*.env` with your IDE and have it ready to paste the information we'll gather in the next steps.

Go to your HubSpot account and create a new HubSpot App, and explore HubSpot if you're not familiar with it. Inside your HubSpot App, head to the "Auth" Tab, next to "App Info," where your can find your app settings.

<figure><img src="/files/9dIHNJbh2tYAz2hO1DTz" alt=""><figcaption><p>HubSpot's Auth tab for your app</p></figcaption></figure>

Now copy your Client ID and Client Secret into the `HUBSPOT_CLIENT_ID` and `HUBSPOT_CLIENT_SECRET` fields in the `.env` file. In the same file, add `oauth` to the HUBSPOT\_SCOPE array.\\

In HubSpot's tab, click the `+Add new scope` button, search for and add the scopes listed in your `.env` file.

<figure><img src="/files/3OIQPe6m0AG0Tlqz3afA" alt=""><figcaption><p>Your scopes should look like this after adding them</p></figcaption></figure>

Next, under the "Redirect URLs" section in the "Auth" tab, add `http://localhost:3000/redirect/hubspot` as a redirect URI.

<figure><img src="/files/OMWO1VYu1GrxFFb4Ubn3" alt=""><figcaption><p>Here you can set up your redirect locations</p></figcaption></figure>

Save your changes in both the `.env` file and HubSpot Auth settings.

Finally, from HubSpot's Developer home, create a new developer test account. This will prepare your app for integration and testing.

With all these settings configured, you're now ready to start your Frigg application.


---

# 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.friggframework.org/tutorials/quick-start/configuration.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.
