Conversations
Create a content fragment
Changed onCreate a new content fragment in the workspace identified by {wId}.
post/api/v1/w/{wId}/assistant/conversations/{cId}/content_fragments
Request
- Base URLhttps://dust.tt
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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"
}
}
}Changes
- info
added the new optional request property
/ - info
added the optional property
/to the response with the status
- info
- info
added the new optional request property
/ - info
added the optional property
/to the response with the status
- info