mirror of
https://github.com/hexastack/hexabot
synced 2025-03-10 14:25:42 +00:00
GITBOOK-43: No subject
This commit is contained in:
parent
01c0df99dd
commit
65f476285c
BIN
docs/.gitbook/assets/image (18).png
Normal file
BIN
docs/.gitbook/assets/image (18).png
Normal file
Binary file not shown.
After Width: | Height: | Size: 195 KiB |
BIN
docs/.gitbook/assets/image (19).png
Normal file
BIN
docs/.gitbook/assets/image (19).png
Normal file
Binary file not shown.
After Width: | Height: | Size: 202 KiB |
@ -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)
|
||||
|
@ -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: 
|
||||
|
||||
<figure><img src="../.gitbook/assets/image (19).png" alt=""><figcaption><p>Using Context Variables</p></figcaption></figure>
|
||||
|
||||
|
||||
|
||||
{% hint style="info" %}
|
||||
**Additional Notes**
|
||||
|
Loading…
Reference in New Issue
Block a user