Represents an Open Floor Protocol message envelope Contains schema, conversation, sender, and events information
const envelope = new Envelope({ conversation: { id: 'conv:12345' }, sender: { speakerUri: 'tag:example.com,2025:agent1' }, events: [{ eventType: 'utterance', parameters: { dialogEvent: {...} } }]}); Copy
const envelope = new Envelope({ conversation: { id: 'conv:12345' }, sender: { speakerUri: 'tag:example.com,2025:agent1' }, events: [{ eventType: 'utterance', parameters: { dialogEvent: {...} } }]});
Creates a new Envelope instance
Envelope configuration options
Error if required fields are missing
Readonly
Convert to JSON string
Convert to plain object
Creates a wrapped payload for the envelope (adds openFloor wrapper)
Static
Represents an Open Floor Protocol message envelope Contains schema, conversation, sender, and events information
Example