An overview of Melodi concepts and data types
markdown
or json
. All messages require a role
field, and can optionally include metadata
and externalId
.
type: 'markdown'
(default if not specified)content
fieldfeedbackType
: Either ‘POSITIVE’ or ‘NEGATIVE’externalThreadId
: The thread ID to attach feedback tofeedbackText
: Additional text feedbackexternalMessageId
: Specific message ID (defaults to last message)projectId
: Recommended to ensure correct thread identificationattributes
: Key-value pairs matching your configured attributesexternalId
(unique identifier for the user)email
name
username
segments
: Key-value pairs for user categorizationexternalThreadId
)externalMessageId
)externalUserId
)