interaction-focus-v3
Event used by the Agent Workspace MFE to announce all the integrators about when an interaction is focused.
Emitter
The Agent Workspace MFE
Listener
Any integrator interested in when an interaction is focused.
Event dictionary
The event dictionary can be browsed here: interaction-focus-v3
Payloads
Payload v3.0.0
Payload schema:
export const INTERACTION_FOCUS_SCHEMA_VERSION = "3.0.0";
export const InteractionFocusPayloadSchema = z.object({
interactionId: z.string(),
queue: z.object({
id: z.string(),
queueId: z.string(),
queueName: z.string(),
}),
isManual: z.boolean(),
schemaVersion: z.literal(INTERACTION_FOCUS_SCHEMA_VERSION)
});
export type InteractionFocusPayload = z.infer<typeof InteractionFocusPayloadSchema>
Payload example:
const payloadV3_0_0 = {
interactionId: 'cognigy',
queue: {
id: '12345',
queueId: 'tenantId~~queue~~chat~~12345',
queueName: `Queue name`
},
isManual: false
}