Skip to main content

Text Chat Component

The Text Chat component enables real-time text messaging between participants during experiments. It uses LiveKit's data channels for reliable, low-latency communication.

Key Features

  • Real-time text messaging
  • Message history persistence
  • Configurable position on screen
  • Message deletion (optional)
  • Read-only observer mode
  • Automatic participant identification
  • Timestamps on messages

When to Use

Use the Text Chat component when you need to:

  • Enable text-based communication between participants
  • Allow collaboration without audio/video
  • Supplement video chat with text
  • Record written discussions for analysis
  • Provide an accessible communication option

Configuration

Basic Settings

SettingDescriptionDefault
PositionScreen position of chat panelbottom-right
Allow Sending MessagesWhether participants can sendtrue
Allow Message DeletionWhether senders can delete their messagestrue

Position Options

PositionDescription
top-leftUpper left corner
top-rightUpper right corner
bottom-leftLower left corner
bottom-rightLower right corner

Appearance

SettingDescriptionDefault
WidthChat panel width300px
HeightChat panel height400px
MinimizableAllow collapsing the paneltrue
Show TimestampsDisplay message timestrue

Examples

Default Chat

Read-Only Mode

For observers who can see but not participate.

Different Positions

Position the chat where it won't interfere with main content.

As a Global Component

Text Chat is a global component that persists across experiment states:

  1. Enable in the Global Components tab
  2. Configure position and settings
  3. Set visibility per state using the matrix view

This allows chat to remain active while participants complete different tasks.

Message Persistence

Chat messages are:

  • Stored for the duration of the experiment session
  • Available for data export after the experiment
  • Associated with participant IDs and timestamps

Data Collection

Text Chat stores all messages:

{
"messages": [
{
"id": "msg_1234",
"senderId": "participant_1",
"senderName": "Participant A",
"content": "Hello, can you see this?",
"timestamp": 1621453287000,
"deleted": false
},
{
"id": "msg_1235",
"senderId": "participant_2",
"senderName": "Participant B",
"content": "Yes, I can see it!",
"timestamp": 1621453290000,
"deleted": false
}
]
}

Best Practices

  1. Clear Purpose: Explain to participants when and how to use chat
  2. Position Wisely: Place chat where it won't obscure important content
  3. Monitor Usage: Review chat logs for research-relevant content
  4. Set Expectations: Let participants know messages are recorded
  5. Consider Accessibility: Text chat helps participants who can't use audio

Text Chat vs Video Chat

FeatureText ChatVideo Chat
CommunicationWritten messagesAudio/video
BandwidthVery lowHigher
PermanenceMessages savedReal-time only
AccessibilityEasy to reviewHarder to transcribe
PrivacyMore anonymousFace visible

Many experiments use both together for flexible communication.

Common Use Cases

Collaborative Tasks

Enable participants to coordinate on shared tasks.

Discussion Experiments

Study how participants communicate about topics.

Supplemental Communication

Backup channel when video chat isn't suitable.

Observer Mode

Let researchers monitor without interfering.

  • Video Chat - For audio/video communication
  • Waiting - For synchronization between participants