AiAgentTurn
Wrapper returned by every conversational-agent mutation (workflow builder,
segment builder, future actions chat). The payload is the same union
persisted on ChatMessage rows, so the UI uses one renderer registry for
both live mutation responses and polled history. chatConversationId is
populated on the very first turn of a new session so the client can stash
it and switch into "resume" mode for subsequent calls.
type AiAgentTurn {
payload: ChatMessagePayload!
chatConversationId: ID
}
Fields
AiAgentTurn.payload ● ChatMessagePayload! non-null union
AiAgentTurn.chatConversationId ● ID scalar
Returned By
aiMarketingCampaignAgentTurn mutation ● aiSegmentBuilderChat mutation ● aiWorkflowAgentTurn mutation


