AI Integration Quick Reference
AI Integration Quick Reference
Overview
The Polls plugin handles messages of typeextension_poll in category custom. It renders an interactive poll bubble where users can vote on options and see real-time results.
Live Preview — interact with the poll bubble.Open in Storybook ↗
Bubble Rendering
- Question — displayed as the poll title
- Options — clickable vote buttons with option text
- Results — percentage bars showing vote distribution after voting
- Vote count — total number of votes
- Lazy-loaded — the bubble component is not included in the initial bundle
customData:
Context Menu Options
Standard media options: React, Reply, Reply in Thread, Info, Delete, Report, Mark Unread, Message Privately.Conversation Preview
Returns the poll question text (truncated to 80 characters). Falls back toPoll if no question is found.