# Connect answr with Make

[Make](https://www.make.com/en) (formely Integromat) is a visual platform for anyone to design, build, and automate anything—from tasks and workflows to apps and systems. It helps the user to connect different apps and services using an intuitive no-code builder.

{% hint style="warning" %}
Before using this guide, an account in Make must be created. If you don't have an account, just [register](https://www.make.com/en/register?pc=geouni) to the platform. If you already have an account, just log in.
{% endhint %}

## Create a new scenario

After you are logged in to your Make account, go to section "Scenarios" and click on the "Create a new scenario" button.

<figure><img src="/files/L0NVawi9TMHGvb3GZT8M" alt=""><figcaption><p>Create a new scenario</p></figcaption></figure>

The no code builder will open and you can start placing the blocks that are needed for your integration. Usually, before calling the answr API, you will need to generate an event from your application/system. For example, you can make an API request when a new row is inserted into a PostgreSQL table, or a new object is added into your CRM.&#x20;

{% hint style="info" %}
To configure a PostgreSQL server in Make just place the host IP/URL, credential and schema and you are ready to go. More details can be found [here](https://www.make.com/en/help/app/postgresql#configuring-your-postgresql-server).
{% endhint %}

<figure><img src="/files/PAuTHZSoPJobUJ7VMuZE" alt=""><figcaption><p>Place the application to be integrated with answr.</p></figcaption></figure>

## Setup login HTTP request

From the builder add a "HTTP" module with an action called "Make a request". The configuration window will pop up. In the URL section place the login API endpoint.

{% code overflow="wrap" lineNumbers="true" %}

```url
https://api.answr.space/api:auth/auth/login
```

{% endcode %}

Select the **POST** method. In the "Body type" section add two new fields as "Multipart/form-data":

* In the Key field place: email, while in the Value field place your account email
* In the Key field place: password, while in the Value field place your password

<figure><img src="/files/LUhAa1CKtMod6kjpY1or" alt=""><figcaption><p>Setup the answr authentication call</p></figcaption></figure>

After setting up your HTTP login request, right click on this module and hit "Run this module only". Then click on the bubble that appears and copy the "**authToken**". We are going to use it in the next step.

{% hint style="info" %}
Paste the copied authToken key in a text editor to keep for the next step.
{% endhint %}

<figure><img src="/files/ke6MlgYufyaipHz5ovZR" alt=""><figcaption><p>Testing the login request</p></figcaption></figure>

## Setup the Climatic Variables HTTP request

Add a second HTTP request, right after the previous one. Select which climatic or other data API endpoint you would like to integrate and paste its URL in the corresponding section.

Select the **GET** method. Then add two header items as shown in the figure below. The second item contains the authToken variable generated from the previous step. In the "Query String" section add an item with the following:

* Name: Input\_point
* Value: {"type":"point","data":{"lng":**LONGITUDE**,"lat":**LATITUDE**}}
  * The **LONGITUDE** and **LATITUDE** should be replaced by the coordinates of the location you request. These can either be hardcoded (as the figure below) or passed as variables from previous steps.

{% hint style="info" %}
Make sure you select "Yes" in the "Parse response" to return the results as a json structure.
{% endhint %}

<figure><img src="/files/FHM8D0eIzSu6Te9bxNqD" alt=""><figcaption><p>Setup the answr data API call</p></figcaption></figure>

After setting up your HTTP data request, right click on this module and hit "Run this module only". Then click on the bubble that appears, paste the "**authToken**" and click ok.&#x20;

<figure><img src="/files/zHOx5zH8bYUiL2wWvMxp" alt=""><figcaption><p>Successful answr API response </p></figcaption></figure>


---

# 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.answr.space/integrations/connect-answr-with-make.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.
