Agenda is a function to send a delayed message. Basically, you can set a timer to trigger a tree node.
1. Create a tree node for the delayed message to be sent. Set up the corresponding response.
2. Copy the Composite ID on top of the node-inspector.
3. Add the below action to the tree node to be sent first.return new Promise((resolve) => {
let nextRunAt = this.moment().add(1, "minutes").valueOf()
this.newAgenda({
member: this.member,
treeId: this.node.tree,
nodeCompositeId: "compositeId",
nextRunAt,
tag: "Last"
})
resolve()
})
4. Add the copied Composite ID onto the above code and adjust the time accordingly.
Please see the related documentation here and set up a tree node of agenda message here.