Task: Fix passing of the page address from which the user is writing
Fix passing of the page address from which the user is writing
28.08.2026gorodskie-bani.ru
Pass the current page address to the AI agent so it clearly understands which company the user is asking about.
Task
Currently, the AI agent on gorodskie-bani.ru does not always understand which specific company is being discussed when a user writes from a specific bathhouse/company card.
We need to fix the passing of the current page context to the AI chat.
What to do
- pass the URL of the current page from which the user is writing in the request to the AI agent;
- if possible, pass it as a separate structured context rather than as part of the user text;
- ensure that the address is available to the agent with every dialog message or in a persistent session context;
- test cases where a user writes from a specific company's card and asks a question without explicitly mentioning its name;
- ensure that the agent uses the URL to determine the current company and does not confuse it with other catalog objects.
Expected result
If a user is on a specific company's page and asks, for example, "how much is admission?" or "do they have a swimming pool?", the agent should understand that the question refers specifically to the company on the current page.