ChatTrigger

data class ChatTrigger(val prompt: String, val onBehalfOf: List<User>)

System-initiated event that triggers a chatbot response without entering the conversation. The prompt reaches the LLM but is never stored as a visible message.

Use cases:

  • Welcome greetings: ChatTrigger("Greet new user jasper", onBehalfOf = listOf(jasper))

  • Daily briefings: ChatTrigger("Give morning briefing", onBehalfOf = listOf(subscriber))

  • Group notifications: ChatTrigger("Surf is up at North Beach", onBehalfOf = surfers)

Parameters

prompt

the prompt to send to the LLM (not stored in conversation)

onBehalfOf

the users this trigger is for — single for personalized, multiple for group

Constructors

Link copied to clipboard
constructor(prompt: String, onBehalfOf: List<User>)

Properties

Link copied to clipboard
Link copied to clipboard