Dynamic card content depending on Query Rule

Greetings,

Is it possible to make card content dynamic depending on a query rule? I’m trying to achieve the following scenario:

My client, an insurance company, has multiple agents who offer the same product. The product conversion flow is specific to each agent. For example, if I wanted to purchase auto insurance from agent Jane Doe, the CTA URL would be something like: www.brand.com/jane-doe/auto-insurance

The brand will have an Answers search bar on each of their agents’ pages. The brand’s customers searching for a product (e.g. auto insurance) on an agent’s page (e.g. Jane Doe’s) need to be pointed to an agent-specific CTA.

Rather than creating a product entity for each agent with a client-specific CTA URL, and surfacing the correct entity with a query rule using referrer URL or context, I was hoping there’s a cleaner approach.

Is it possible to pull a context object (that’s being passed from the client) onto a result card rather than refer to a KG field or display hardcoded content?

There’s always more than one way to skin a cat, so please let me know if you can think of any other approach :slight_smile:

Thanks for your help as always!

Max

Hi Max,

Great question - it’s currently not possible to change card content based on context with query rules. The approach you suggested to create a product entity per agent might be the cleanest approach.