Skip to content

Conversation

Shows a transcript that stays at the newest message while it streams.

Why did activation drop last week?
Response complete
Activation fell from 61.8% to 57.6% on Sep 24, one day after v2.14 shipped. The new role picker adds a step before the invite screen.
Which plan is affected most?
Response complete
Team plans fell 6.2 points. Personal plans moved 0.4 points, which is inside the normal weekly range.
Show the invite funnel
Response complete
1,842 people opened the invite screen and 1,196 sent an invite. The picker step loses 214 people who never choose a role.
Is the drop still falling?
Response complete
No. The last three weeks read 57.1, 58.4, and 58.9 percent, so the floor is flat and slowly recovering.
What should we change first?
Response complete
Prefill the role from the invite link and keep the picker as an edit. That removes one decision from the path.

Which segment grew the fastest?

conversation-demo.tsx

Installation

The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.

Usage

transcript.tsx

Composition

  • Conversation

    Owns the pin state. Call scrollToLatest from useConversation when the user sends.

    • ConversationContent

      The scroller. Give each message data-conversation-item; Message does it for you.

      • ConversationLoadOlderOptional
      • ConversationEmptyOptional
    • ConversationJumpOptional

useConversation Returns isPinned, newCount, and scrollToLatest for the send button.

Jump to latest

Scroll up while the answer streams to show the button. Also install Message and Response.

How many invites went out this week?
Response complete
Teams sent 1,196 invites this week, up from 1,048 last week. The invite screen converts 64.9 percent of the people who open it.
Which team sends the most invites?
Response complete
Northwind Labs sent 118 invites across 14 seats. Beacon Health follows with 96 invites, and both teams joined in September.
Did the reminder email help?
Response complete
Yes. Invites sent within a day of the reminder rose 18 points. The reminder goes out on day three, when interest is still high.
Where do invites get stuck?
Response complete
Most stuck invites wait on the role picker. 214 people opened the screen, chose no role, and closed the tab before the invite sent.
conversation-jump-demo.tsx

Load older messages

Also install Message and Response.

How is activation after the pricing change?
Response complete
Activation rose 2.8 points in the two weeks after Oct 10. Self-serve trials gained the most, from 48.2 to 51.4 percent.
Is the change holding?
Response complete
Yes. The last seven days read 51.1 percent, which is within a point of the week before. The lift did not fade.
What else moved that week?
Response complete
Invite sends rose 6 points and the role picker lost fewer people. Both changes share the new pricing page, so the cause is not isolated yet.
conversation-load-older-demo.tsx

Empty

Also install Empty state, Prompt input, Message and Response.

Ask about this week

Fernway reads the last 30 days of product data and links each number to its source.

conversation-empty-demo.tsx

With prompt input

Call scrollToLatest when the user sends a message. Also install Message, Response and Prompt input.

Who sends the most invites?
Response complete
Northwind Labs sent 118 invites from 14 seats. Beacon Health sent 96 invites, and both teams started in September.
Do those invites convert?
Response complete
Yes. 71 percent of Northwind invites reached an active seat, against a 58 percent average for team plans.
conversation-prompt-demo.tsx

API reference

Conversation

aria-label: string = "Conversation"
Names the log region for screen readers.
initialScroll: "bottom" | "top" = "bottom"
Sets the first scroll position, with no animation.
threshold: number = 24
Sets how close to the bottom the reader must scroll to pin the view again.

ConversationContent

className: string
Sets the width, padding, and gap of the message list inside the scroller.

ConversationEmpty

children: ReactNode
The empty content, usually an EmptyState. It shows until the first message renders.

ConversationLoadOlder

onLoad: () => void | Promise<void>Required
Loads the older messages. Runs when the sentinel enters view and when the button is pressed. A pending promise shows a spinner.
hasMore: booleanRequired
Renders the sentinel. Set it to false after the last page loads.
children: ReactNode
Replaces the button label.

ConversationJump

children: ReactNode = "Jump to latest"
Replaces the visible label. The new message count stays in the accessible name.