GITBOOK-43: No subject

This commit is contained in:
Mohamed Marrouchi 2024-09-14 06:49:22 +00:00 committed by gitbook-bot
parent 01c0df99dd
commit 65f476285c
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF
4 changed files with 14 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

View File

@ -38,7 +38,7 @@
* [Web Channel](user-guide/manage-settings/web-channel.md)
* [Live chat widget](user-guide/manage-settings/live-chat-widget.md)
* [Facebook Messenger](user-guide/manage-settings/facebook-messenger.md)
* [Manage Context Variables](user-guide/manage-context-variables.md)
* [Context Variables](user-guide/context-variables.md)
* [Chat Inbox](user-guide/chat-inbox.md)
* [Manage Subscribers](user-guide/manage-subscribers.md)
* [Manage Categories](user-guide/manage-categories.md)

View File

@ -1,4 +1,4 @@
# Manage Context Variables
# Context Variables
<figure><img src="../.gitbook/assets/image (1).png" alt=""><figcaption></figcaption></figure>
@ -26,6 +26,18 @@ Think of context variables as temporary storage containers that hold data specif
* **Edit Variable label:** You can edit a variable's label. However, you cannot change it name once it's created.
* **Delete a Variable:** If a context variable is no longer needed, you can delete it from the list. Be careful because deleting a variable will remove all data stored within it.
**3. Using Context Variables:**
Once a context variable is defined, you can edit a given block's options and add that context variable to capture the user input message. In the following example, we will collect the phone number entered by the user.
<figure><img src="../.gitbook/assets/image (18).png" alt=""><figcaption><p>Capture Context Variables</p></figcaption></figure>
Once the block gets triggered, the value will be stored within the context variable and you would be able to access it through the context. For example, you can use it in a text message by injecting `{phone_number}` and it will be replace automatically by the value that has been captured:&#x20;
<figure><img src="../.gitbook/assets/image (19).png" alt=""><figcaption><p>Using Context Variables</p></figcaption></figure>
{% hint style="info" %}
**Additional Notes**