Delete Note
What does it do?
Deletes a note from the current chat. Nothing is stored under this node's name; a successful delete goes to on_complete.
The bot can delete any note of the chat, including notes written by agents.
1. Syntax
<node_name>:
type: func
func_type: chat
func_id: deleteNote
params:
noteId: "<note_id>"
on_complete: <next_node>
on_failure: <failure_node>
required params
typetype of the nodefunc_typehere it will be a chat functionfunc_idwhat function are we calling (deleteNote)params.noteIdID of a note in this chaton_completenext node after the note is deleted
optional params
on_failurenode for a note that does not exist (for example, already deleted) or invalid paramsdepartmentassigns the chat to a departmentagentassigns the chat to a specific agent (email address or CRM ID as defined in the Texter agents manager)
2. Examples
Remove the ticket note when the ticket is closed
remove_ticket_note:
type: func
func_type: chat
func_id: deleteNote
params:
noteId: "%chat:crmData.ticketNoteId%"
on_complete: ticket_closed
on_failure: ticket_closed
Both routes continue to ticket_closed, so a note that is already gone does not stop the flow.