wide-lifeguard-54383
04/01/2024, 2:38 PMsquare-energy-41150
04/01/2024, 2:38 PMbp.dialog.jumpTo
function to achieve this. To obtain the flow and node values, you can use the bp.dialog.getFlow
and bp.dialog.getNode
functions respectively.
Here is an example of how you can use these functions:
javascript
const flow = bp.dialog.getFlow('your-flow-id');
const node = bp.dialog.getNode('your-node-id');
bp.dialog.jumpTo(flow, node);
Make sure to replace 'your-flow-id'
and 'your-node-id'
with the actual IDs of the flow and node you want to jump to.
Please note that the bp.dialog.jumpTo
function is only available in the Botpress SDK and cannot be directly used in the code of Message.tsx. You will need to use it in a separate action or hook.
Source:wide-lifeguard-54383
04/01/2024, 2:40 PMsquare-energy-41150
04/01/2024, 2:40 PMbp.dialog.getFlow
and bp.dialog.getNode
to obtain the flow and node values respectively. However, please note that the bp.dialog.jumpTo
function, which allows you to jump to a specific node, can only be used in the Botpress SDK and not directly in the code of Message.tsx. It needs to be used in a separate action or hook.wide-lifeguard-54383
04/01/2024, 2:45 PMwide-lifeguard-54383
04/01/2024, 2:49 PMsquare-energy-41150
04/01/2024, 2:49 PMbp.dialog.jumpTo
function, which you would use to revert to a specific node, cannot be directly used in the Message.tsx file but can be utilized within these separate elements of the Botpress SDK.wide-lifeguard-54383
04/01/2024, 2:51 PMsquare-energy-41150
04/01/2024, 2:51 PMwide-lifeguard-54383
04/01/2024, 2:53 PMsquare-energy-41150
04/01/2024, 2:53 PMbp.dialog.jumpTo
function in the Message.tsx
file is because it can only be used in the Botpress SDK and not directly in the code of Message.tsx
. It needs to be used in a separate action or hook within the Botpress SDK. If you don't have any other place to bind with each message prop, you can create a separate action or hook within the Botpress SDK to handle the onclick event and use the bp.dialog.jumpTo
function there.wide-lifeguard-54383
04/01/2024, 2:59 PMwide-lifeguard-54383
04/01/2024, 3:01 PMwide-lifeguard-54383
04/01/2024, 3:03 PMwide-lifeguard-54383
04/01/2024, 3:03 PMwide-lifeguard-54383
04/01/2024, 3:31 PMsquare-energy-41150
04/01/2024, 3:31 PMwide-lifeguard-54383
04/01/2024, 3:33 PMsquare-energy-41150
04/01/2024, 3:33 PMwide-lifeguard-54383
04/01/2024, 3:49 PMwide-lifeguard-54383
04/01/2024, 4:38 PMfamous-jewelry-85388
04/01/2024, 4:49 PMwide-lifeguard-54383
04/01/2024, 4:52 PM