BlockPointer
Using a BlockPointer you can route the conversation to different blocks, potentially to handle different questions or continue the next steps.
Last updated
Using a BlockPointer you can route the conversation to different blocks, potentially to handle different questions or continue the next steps.
Last updated
A BlockPointer
points to an already existing Block using the Block Id, found in logicdialog.
Where possible this method should be used as it allows for block content to be edited easily without having to deploy changes to your code.
A block pointer is a simple object containing the ID of the block you wish to link to. In the example below, the ID of this block would be 5c62ead3ab358c3780bb60dc
.
To use a BlockPointer
, the pushBlockPointer
function in the ResponseBuilder
is used, with a BlockPointer
object, containing the id of a block. This block can be a basic block, or a function block.
For further reference on the ResponseBuilder
, please see the API page.