Backlinks
As detailed in Taffrail's User Experience, a Backlink is represented as a chip — a visually distinctive element used to signal and allow for personalization of the text shown. In our API, a Backlink links a Variable and a modifiable question/assumption.
In the example below, pressing the chip containing "single" would reveal the Backlinked tax filing status question and available choices.
Embed
Our Advice Embed has this chip and popup interface built in, so you don't need to develop anything to get started. We will customize the styles of the embedded content to match your brand guidelines, giving your users a seamless experience.
API
Backlinks in our API are identifiable regardless of Advice Content Type by inspecting inline Taffrail Vars or the Variables list.
In the API response, a Variable with a Backlink will have data-backlink-required="true" on the <taffrail-var> element, and a corresponding data-backlink-name attribute referencing the originating question:
{
"headline_html": "...your income is below <a href=\"#IRS_Limit\" class=\"taffrail-var\"><taffrail-var data-variable-name=\"IRS_Limit\" data-backlink-name=\"Annual_Income\" data-backlink-required=\"true\" data-variable-raw-value=\"146000\">$146,000</taffrail-var></a>..."
}Learn more in the API Reference.
Updated 12 days ago
