> For the complete documentation index, see [llms.txt](https://cogneed.gitbook.io/cogneed-centre-daide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cogneed.gitbook.io/cogneed-centre-daide/cogneed-help-center/dashboard/content-management/project/vocal-triggers/context.md).

# Context

A **Context** allows you to trigger the display of different content cards for the same vocal trigger. A **Contextual Display** only occurs when the associated context, then the vocal trigger, are successively detected.

{% hint style="success" %} <mark style="color:green;">**For example**</mark>, when 2 products are associated with the <mark style="color:green;">**contexts Product1 and Product2,**</mark> the contextual vocal trigger "<mark style="color:green;">**Pricing**</mark>" can trigger the contextual displays <mark style="color:green;">**Product 1 Pricing**</mark> or <mark style="color:green;">**Product 2 Pricing**</mark> depending on the context detected in the CogNeed session.
{% endhint %}

## Create a context

In the "**Vocal Triggers**" section of your project, click the button <img src="https://160715368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFCbypPSQCx2ezWjFUPY%2Fuploads%2FRTpupngzUU0VWhgJYYAl%2Fimage.png?alt=media&#x26;token=8ebbbc67-8cb3-4f5e-8af4-660386a57b36" alt="" data-size="line"> at the bottom of the page. Enter its name and confirm. You can then assign it a colour.

<figure><img src="https://160715368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFCbypPSQCx2ezWjFUPY%2Fuploads%2FpXZf29s9rT8FmQEjSnfT%2Fimage.png?alt=media&#x26;token=28d3da3b-2dbd-4389-9ce7-589cbb5be66e" alt="" width="563"><figcaption></figcaption></figure>

For each context created, you must specify:

* ***One or more voice triggers***: These are the vocal triggers that will trigger the context in your users' sessions. For example, in the case of the "Product 1" context, the logical vocal trigger would be "Product 1".
* ***One or more voice triggers linked to contextual displays***: These are the vocal triggers that will trigger the display of a specific content card when a context has previously been triggered. For example, in the case of the "Product 1" context, the "Subscription" vocal trigger could trigger the "Product 1 Subscription" content card.

## Add a vocal trigger linked to a context switch

1. If the vocal trigger already exists, click the pencil icon in the "Action" column. If it doesn't yet exist, create it using the article&#x20;
2. In the "Display" section, check the box that identifies the vocal trigger as a context switch trigger and select the associated context from the drop-down list—in our example, "Product 1."<br>

   <figure><img src="https://160715368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFCbypPSQCx2ezWjFUPY%2Fuploads%2FwAPt9jxu5ycfLMdf96VO%2Fimage.png?alt=media&#x26;token=901f9546-715b-4b49-8369-66ab58ed9887" alt=""><figcaption></figcaption></figure>
3. Save your changes or finish creating the vocal trigger.
4. A blue arrow icon <img src="https://160715368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFCbypPSQCx2ezWjFUPY%2Fuploads%2FhCP08bTwjkiYP5Ejvar1%2Fimage.png?alt=media&#x26;token=7fba4e7b-2861-492e-bbf2-873b0243b166" alt="" data-size="line"> appears to the left of the vocal trigger to indicate its context trigger status.

{% hint style="success" %}
It is possible to associate <mark style="color:green;">**multiple triggers with the same context**</mark>.
{% endhint %}

## Add a vocal trigger linked to a contextual display

1. If the vocal trigger already exists, click the pencil icon in the "Action" column. If it doesn't yet exist, create it using the article&#x20;
2. In the "Display" section, click "**Add a Contextual Display**" and fill in the following fields:
   1. Associated context - in our example, "Product 1"
   2. Content card to display - in our example, "Product 1 Subscription"<br>

      <figure><img src="https://160715368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFCbypPSQCx2ezWjFUPY%2Fuploads%2FBI2h3JKKSFsU1c62ymLt%2Fimage.png?alt=media&#x26;token=0ba95836-131e-4739-a2e5-0661c379de0a" alt="" width="327"><figcaption></figcaption></figure>
3. Save your changes or finish creating the vocal trigger.

Done! You now have a "Product 1" context triggered by the pronunciation of the "Product 1" vocal trigger and a "Subscription" contextual vocal trigger that triggers the "Product 1 Subscription" contextual display when the "Product 1" context is active in your users' sessions.
