# How it works

There are several ways in which AlgoWIFI works.&#x20;

If installed on an access point, during the access phase an image is displayed in the captive portal.

Each transaction is then recorded in real time on the blockchain and at the same time the revenues and charges are sent to the various stakeholders.

**Example of a transaction from an access point:**

```json
{
  "Mac": "B0:73:5D:6A:EC:3A",
  "Location": "Torre WIFI - MetroWimax",
  "CampaignName": "MetroWimax",
  "CampaignId": "5",
  "referer": "http://172.0.0.1/"
}
```

**Example of a transaction from a web site:**

```json
{
  "CampaignName": "Turning Based Lovers",
  "CampaignId": "19",
  "referer": "https://turnbasedlovers.com/",
  "remote": "66.249.70.53"
}
```


---

# 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://doc.algowifi.com/how-it-works.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.
