Send RCS Demo
The RCS message embed enables customers to preview and send RCS messages directly from your website. Perfect for sending demos.
Integration Workflow
Embed the iframe
Add Pinnacle’s component to your website using an iframe:
Then create a script to reference the iframe element:
Configure the message (Frontend)
Send your message configuration via postMessage from your frontend:
Code Example
Configuration Fields
Maximum 10 quick replies per message. Quick replies enhance engagement and simplify user interactions. See the RCS API reference for all available quick reply types.
Handle send events
When the user clicks “Text me”, the iframe emits a SEND_RCS_MESSAGE event with this data structure:
The message field contains a ready-to-send RCS message object (minus the from and to fields which you’ll add on your backend).
Message Formats
The embed automatically adapts the message layout based on your configuration:
- Basic Text — Simple text with optional quick replies for straightforward messaging
- Rich Card — Combines title, subtitle, media, and buttons for comprehensive content presentation
- Rich Media — Standalone image, video, or PDF with quick replies for visual-first communication
Frontend
Backend (Express)
Complete Implementation
Before you begin, make sure to copy the package.json file below and run npm install to install all dependencies.
Frontend (HTML)
Backend (Express)
package.json
.env.example
Best Practices
- Security: Always validate
event.originbefore processing messages - Media: Host assets on CDN for optimal performance
- Consent: Include clear opt-in language and links to legal documents
- Testing: Verify message rendering across different RCS-enabled devices

