Supported file formats and import methods
File format: JSON in our conversation format
Encoding: UTF-8 (Note: The Editor does not process any special character sequences like HTML Entities, Unicode Escape Sequence, or colon emoji aliases.)Import methods:
- Direct upload (256 MB max file size)
- IAM Delegated Access
- Signed URLs (
https
URLs only)
When importing conversation or thread data to Labelbox, your JSON file must include the following information for each text file.
Parameter | Required | Description |
---|---|---|
| Yes | User-generated file name or ID for the file. For the best experience, this ID should be unique. |
| Yes | Accepts an |
| No |
[
{
"externalId": "Conversation1",
"conversationalUrl": "https://storage.googleapis.com/labelbox-sample-datasets/nlp/lorem-ipsum.json"
}
]
[
{
"externalId": "Conversation1",
"conversationalUrl": "https://lb-test-data.s3.us-west-1.amazonaws.com/plaintext+test.json"
}
]
Conversational JSON Format
Max conversation size
For conversations, we support up to:
- 250 messages
- 10000 character limit per message
Parameter | Required | Description |
---|---|---|
| Yes | This should always be populated with |
| Yes | This should be populated with |
| Yes | This is the array of Message Objects that makes up the conversation. Please see below for the fields that must be included for each message. The current maximum is 250 messages in a conversation |
Message object
Parameter | Required | Description |
---|---|---|
| Yes | This is the external ID for the message. This must be unique within the conversation file and will be returned on the exports to help match annotations to message. |
| No | The unix epoch timestamp of the message. |
| Yes | This field contains the text string of the conversation. This must be under 10000 characters. |
| Yes | This field is used to describe the person that is speaking. The user defined by two fields: userId and name. The name field is used to show the user name in the editor.
|
| No | This field Controls the alignment and indentation of the text string in the editor. If left blank, we will default to Options: |
| Yes | This field determines if the text string can be annotated as a part of the editor workflow. If set to If set to |
Sample conversational JSON
{
"type": "application/vnd.labelbox.conversational",
"version": 1,
"messages": [
{
"messageId": "message-0",
"timestampUsec": 1530718491,
"content": "I love iphone! i just bought new iphone! 🥰 📲",
"user": {
"userId": "Bot 002",
"name": "Bot"
},
"align": "left",
"canLabel": false
},
{
"messageId": "message-1",
"timestampUsec": 1530718503,
"content": "Thats good for you, i'm not very into new tech",
"user": {
"userId": "User 00686",
"name": "User"
},
"align": "right",
"canLabel": true
},
{
"messageId": "message-2",
"timestampUsec": 1530718516,
"content": "I am a college student and i am a college student 👩🏻🏫",
"user": {
"userId": "Bot 002",
"name": "Bot"
},
"align": "left",
"canLabel": false
},
{
"messageId": "message-3",
"timestampUsec": 1530718528,
"content": "I am go to gym and live on donations 🏋🏿♀️",
"user": {
"userId": "User 00686",
"name": "User"
},
"align": "right",
"canLabel": true
},
{
"messageId": "message-4",
"timestampUsec": 1530718540,
"content": "I am a vegan and i am in the midwest 🌱",
"user": {
"userId": "Bot 002",
"name": "Bot"
},
"align": "left",
"canLabel": false
},
{
"messageId": "message-5",
"timestampUsec": 1530718553,
"content": "So vegan... i have dogs maybe i should told then that they may eat cheap salads insted of meat 🐩",
"user": {
"userId": "User 00686",
"name": "User"
},
"align": "right",
"canLabel": true
},
{
"messageId": "message-6",
"timestampUsec": 1530718565,
"content": "I would not mind having them in the office that would be hard for me",
"user": {
"userId": "Bot 002",
"name": "Bot"
},
"align": "left",
"canLabel": false
},
{
"messageId": "message-7",
"timestampUsec": 1530718578,
"content": "Dogs or vegan in office?",
"user": {
"userId": "User 00686",
"name": "User"
},
"align": "right",
"canLabel": true
},
{
"messageId": "message-8",
"timestampUsec": 1530718590,
"content": "I am a vegetarian so i am vegan",
"user": {
"userId": "Bot 002",
"name": "Bot"
},
"align": "left",
"canLabel": false
},
{
"messageId": "message-9",
"timestampUsec": 1530718603,
"content": "Strange answer",
"user": {
"userId": "User 00686",
"name": "User"
},
"align": "right",
"canLabel": true
},
{
"messageId": "message-10",
"timestampUsec": 1530718615,
"content": "I guess i just do not know what to ps4 experience with.",
"user": {
"userId": "Bot 002",
"name": "Bot"
},
"align": "left",
"canLabel": false
}
]
}
Sample conversations in the editor view


This is an example of a conversation using left and right alignment


This is an example of a conversation using left indentation