Conversations
Create a content fragment
Create a new content fragment in the workspace identified by {wId}.
post/api/v1/w/{wId}/assistant/conversations/{cId}/content_fragments
Path parameters
wIdstring required
ID of the workspace
cIdstring required
ID of the conversation
Request body
Example request
{
"title": "My content fragment",
"content": "This is my content fragment extracted text",
"contentType": "text/plain",
"url": "https://example.com/content",
"fileId": "fil_123456",
"path": "conversation/report.csv",
"processedPath": "conversation/voice.processed.txt",
"nodeId": "node_123456",
"nodeDataSourceViewId": "dsv_123456",
"context": {
"username": "johndoe123",
"timezone": "America/New_York",
"fullName": "John Doe",
"email": "john.doe@example.com",
"profilePictureUrl": "https://example.com/profiles/johndoe123.jpg",
"agenticMessageData": {
"originMessageId": "2b8e4f6a0c"
}
}
}Response
Content fragment created successfully.
Example response
{
"title": "My content fragment",
"content": "This is my content fragment extracted text",
"contentType": "text/plain",
"url": "https://example.com/content",
"fileId": "fil_123456",
"path": "conversation/report.csv",
"processedPath": "conversation/voice.processed.txt",
"nodeId": "node_123456",
"nodeDataSourceViewId": "dsv_123456",
"context": {
"username": "johndoe123",
"timezone": "America/New_York",
"fullName": "John Doe",
"email": "john.doe@example.com",
"profilePictureUrl": "https://example.com/profiles/johndoe123.jpg",
"agenticMessageData": {
"originMessageId": "2b8e4f6a0c"
}
}
}