When a record is enrolled in a process or a visitor is speaking with a bot, these functions are executed.