How to send a delay message?
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.
Related Articles
We have different consecutive responses (first, second, third response) to a certain trigger, can we assign a certain time delay (e.g.15 seconds) to the third one?
You can use responses to send the first 2 responses and use an action to set the agenda for the third response, however, we can only support a delay of around 1 min as it takes time for the agenda to run. Please click here for more details. Or you ...
How to send a push message with variables? (i.e. order number)
You could send the push via Stella API, so you could include the customer details (i.e.order number) in the template message from your database. You could also refer to the documentation here on how to Apply Stella API to Chatbot 1. Please use the ...
Could we send responses when the user is inactive for a certain time (e.g. 30mins.) ?
You may use the agenda function. Agenda is a scheduling system within Stella that will run a specific node for a member in a specific time. In simple words, it is a timer, when the countdown is finished, a message is sent. You can make use of it if ...
What should I do if receiving this error: "Message failed to send because of an unknown error"?
It could be not enough memory and caused the server to be temporarily down. If the server is not connected in the health check, you could restart the server (after clicking Unlock) in the Stella platform, nad the Whstapp number will be back on line ...
What is a template message?
Templated Messages Message Templates are message formats for common reusable messages a business may want to send. Businesses must use Message Templates to send notifications to customers. This allows a business to send just the template identifier ...