2
0

docs: 📝 Add dynamic avatar guide

This commit is contained in:
Baptiste Arnaud
2022-07-03 07:41:47 +02:00
parent b0010aae32
commit cc71157e0f
4 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
# Dynamic avatars
You can decide to change the host avatar dynamically so that your bot can display multiple avatars. Here is a simple example:
<img
src="/img/guides/multi-avatars/demo.gif"
width="800"
alt="Multiple avatars demo"
/>
For this, head over to the "Theme" tab and set the host avatar to a variable URL:
<img
src="/img/guides/multi-avatars/bot-variable.png"
width="500"
alt="Variable URL bot"
/>
Then you can set this variable to any URL in your flow so that the host avatar changes dynamically.
<img
src="/img/guides/multi-avatars/flow-example.png"
width="800"
alt="Multiple avatars flow example"
/>
The first block defines all the avatars that can be displayed. The second block starts by setting the avatar to the wizard avatar. The final block starts by setting the swordsmith avatar.

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB