> For the complete documentation index, see [llms.txt](https://docs.fact-finder.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fact-finder.com/integration/campaign-specific-integration.md).

# Campaign-specific Integration

## Overview

Different actions are needed depending on the campaign type. The next sections explain how to handle the different campaign settings. Keep in mind that FactFinder NG can return several campaigns at once.

Not all campaigns need to be handled in the same way. For example, you may receive several redirection campaigns. Because NG does not return campaigns in priority order, define that priority in your integration project.

## Integrating Advisor Campaigns

These are campaigns where the `flavour` attribute is set to `ADVISOR`. Advisor campaigns contain two sections in the response:

* The first section contains the active questions and associated answers.
* The second section contains the full question-and-answer tree. The active questions are the ones currently shown to the shop visitor. Because the campaign is structured as a tree, the active section initially contains the first question in that tree.

When the user selects an answer, the follow-up questions below that answer are returned as active questions.

## Integrating Feedback Campaigns

Feedback campaigns let you return text or products to the shop as “feedback.” These campaigns use the type, or `flavour`, `FEEDBACK`.

### Feedback Text

Earlier FactFinder versions managed this kind of variable content with numeric identifiers. The integration project defined where each feedback text number appeared on the shop page. For example, feedback text number 3 might have been placed above the search results *\[1]*.

Since version 6.7, feedback texts use names instead.

For current integrations, use those names as identifiers.

> **\[1]** "Above the search results" in this instance really is simply an example. The position of the feedback text can be selected by the shop operator in the integration project.

The names are agreed with the shop operator during the integration project and then configured in FactFinder. In the user interface, users can select from those predefined names.\
You can also define whether each feedback text may contain HTML. FactFinder returns this property together with the feedback text, so your integration can decide whether the text should be HTML-escaped *\[2]*.

> **\[2]** The default value for the HTML attribute is false. If the HTML attribute is not specified, this means that the feedback text may not contain HTML and must therefore be escaped.

### Pushed Products

You can assign products to **Feedback Campaigns**. FactFinder returns the product list with the campaign.

> **Note:** The product list entries each contain the complete field list from the product record in the FactFinder database. However, in order to save bandwidth you can also pass the parameters `idsOnly=true` with the search request. In this case the content of the records is omitted.

> **Note:** A campaign can also be returned with 0 products. Users can choose to integrate campaign products directly into the search results. In that case, no separate campaign product list is returned. The campaign itself is still returned so the shop knows that the search query triggered it.

## Integrating Redirect Campaigns

If the campaign is a redirection campaign, the type is set to `REDIRECT` and the redirection field is populated:

**JSON**: “`flavour`” and “`target`” within a `campaignsList` element.

A redirection consists of an optional name and a target URL. The URL is passed exactly as the user entered it (FactFinder does not perform any conversion on the URL).

When a redirection campaign triggers, the default behavior is to redirect the current page automatically to the specified URL. Other responses are possible too. For example, you can use redirection campaigns to show selectable links instead. In that case, use the redirection name as the display text. The final display behavior is defined during the integration project.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.fact-finder.com/integration/campaign-specific-integration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
