# Integrating Advisor Campaigns

These are campaigns for which the `flavour` attribute is set to `ADVISOR`. Advisor campaigns contain two new sections in their response:

* The first section contains the active questions and associated answers.
* The second section contains the complete question and answer tree. The active questions are those that are currently to be displayed to the shop visitor. Since the campaign consists of a tree or hierarchy of questions and answers, initially the “active” questions section consists of the first question in the tree.

When the user clicks a response, the follow-up questions below the selected answer are returned as active questions.

### REST-Interface

The technical documentation of the REST-API is contained in the search application itself and can be accessed via \[your NG server]/fact-finder/swagger-ui.html . It can be also accessed via the following URL:

Swagger Link: <https://ng-demo.fact-finder.de/fact-finder/swagger-ui.html>

Methods are documented under records. In addition to viewing the parameter documentation, you can also test a query and view the results. The documentation was created with Swagger, so you can use Swagger Codegen to generate a client to use in your code.

Please use the `campaign` method to retrieve campaigns.


---

# 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.fact-finder.com/integration/campaign-specific-integration/integrating-advisor-campaigns.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.
