Sendblue for Salesforce
Last updated: December 30, 2025
Version 1.27 | November 13th, 2025
Install Link: Prod | Sandbox
Overview
The Sendblue for Salesforce package enables your organization to:
Send and receive SMS and iMessage messages directly from Salesforce
View conversation history in a user-friendly interface
Track message status (sent, delivered, etc.)
Apply special message effects for iMessage conversations
Include media attachments in messages
Track conversation metrics and engagement
Security Features
Permission Sets
Sendblue_User Permission Set: Required for all end users
Provides access to messaging features
Must be assigned during installation
Messaging_Gateway_Permissions: Used only for the site guest user
Provides minimal access for webhook processing
Security Implementation
Field-Level Security (FLS): Enforces user field access permissions using WITH SECURITY_ENFORCED
Object-Level Security (OLS): Validates user object access before operations
XSS Protection: Sanitizes all user-generated content
Secure Logging: Uses LogSanitizer to prevent sensitive data exposure
Centralized Configuration: Secure API credential storage via Custom Metadata
Prerequisites
Salesforce org with administrator access
Sendblue account with API credentials
Contact Sendblue support to receive your API credentials
Installation
📹 Installation Video Guide
Watch the complete installation walkthrough: Sendblue Salesforce Installation Video
Install Package: Use the installation links provided above
Assign Permission Sets: Add "Sendblue User" permission set to all messaging users
Post-Installation Setup
1. Configure Webhook Site
Go to Setup → Sites
Accept terms and click New
Create site with these values:
Site Label: Messaging Gateway
Site Name: MessagingGateway
Contact and Record Owner: Any admin user
Click on Site Label → Public Access Settings
Select Site Guest User → Edit Assignments
Add Sendblue Guest API permission set
2. Register Webhook URL
Copy your Site URL (e.g., https://example.my.salesforce-sites.com/MessagingGateway)
Append: /services/apexrest/sendblue/webhook-receiver
Complete URL: https://example.my.salesforce-sites.com
Add Webhook URL to Sendblue Dashboard
Login to dashboard.sendblue.com select the gear icon, API Settings and add Webook URL you added to Salesforce Metadata. Make sure Webhook secret is what you set in metadata. The Webhook secret can be anything but needs to match.Â
3. Configure API Authentication
Go to Setup → Custom Metadata Types
Click Manage Records next to Messaging Config
Click New, enter Label and Name as "Main"
Populate values provided by from your API Setting in Sendblue Dashboard (screenshot above):
API Key
API Secret
Webhook Inbound Secret
API Endpoint
âś… Package Validation Video
Verify your installation is working correctly: Sendblue Package Testing & Validation
Watch this video to confirm your package is properly configured and functioning as intended.
Data Model
Conversation Object (sendblue__Conversation__c)
Message Object (sendblue__Message__c)
Package Components
Apex Classes
Lightning Web Components
Flows
Custom Metadata Type
User Interface
Accessing the Interface
Select App Launcher at top left
Select "Sendblue Conversations"
List Views
Conversation Viewer
The interface has three main sections:
1. Past Conversations View
Displays all previous messages in the conversation
Shows text content, timestamps, and visual differentiation between inbound/outbound
2. Message Sending Panel
Message Input Field: Text box for composing messages
Media URL: Optional field for media attachments
Effect Dropdown: Special message effects (iMessage)
Send Message Button: Transmits the message
3. Conversation a
Contact Number, Sendblue Number, iMessage Status
Message count, engagement status, campaign information
Timestamps for last inbound/outbound messages
Sending Messages
Messages can be sent through:
Conversation Viewer Interface: Use the Mesc sage Sending Panel
Flow Actions: Use "Sendblue - Send Message" flow action
Apex Code: Call SendMessage class directly
Message Options
Text Content: Regular message text
Media URL: Images, videos, or other media
Effects: Special effects for iMessage (spotlight, balloons, etc.)
Callback URL: Receive message status updates via webhook
Dashboards & Reports
Pre-built analytics include:
Conversations Per Day: Volume tracking over time
Message Response Times: Reply speed monitoring
iMessage Usage Percentage: iMessage vs SMS ratio
Engagement Metrics: Conversation engagement insights
Needs Reply Dashboard: Conversations awaiting response
Key Metrics
Number of conversations sent/received
Reply percentage and average response time
Recent engaged conversations with details
Technical Architecture
Webhook-Based System
Outbound Messages: Sent via API calls to Sendblue, status updates via webhooks
Inbound Messages: Received by Sendblue, forwarded via webhooks to WebhookReceiver
iMessage Evaluation: EvaluateNumberService checks recipient capability
Security: FLS/OLS enforcement, secure logging, custom metadata configuration
Key Components Integration
ConversationDisplay: API Name with required Conversation ID input
SendMessage Action: Apex class with inputs for message content, media URL, recipient number, send style, and conversation ID
Flow Templates and CustomizationNew Feature: Customizable Flow Templates
All flows included in the Sendblue package are now designated as templates, enabling users to clone and customize them to align with specific business requirements while retaining original functionalities.Available Flow Templates1. Sendblue Leads (Lead Texting)
Purpose: Automated workflow for lead creation and messaging.
Features:
Initiates SMS/iMessage communication with new leads.
Generates Lead records inclusive of contact information.
Establishes links between conversations and lead records.
Common Customizations:
Integration of custom lead fields.
Modification of lead assignment protocols.
Incorporation of personalized message templates.
2. Sendblue Conversation Management
Purpose: Manages the lifecycle of conversation records.
Features:
Monitors conversation status.
Supports message effects (iMessage).
Processes media attachments.
Common Customizations:
Addition of custom conversation routing mechanisms.
Implementation of approval workflows.
Establishment of escalation protocols.
3. Sendblue Conversation UI
Purpose: Provides the user interface for conversation viewing.
Features:
Real-time display of conversations.
Access to message history.
Quick actions for routine tasks.
Common Customizations:
Integration of custom buttons or actions.
Adjustment of display layouts.
Inclusion of supplementary conversation context.
4. Sendblue Inbox
Purpose: Centralized inbox for comprehensive conversation management.
Features:
Consolidated view of all messages.
Filtering and sorting capabilities.
Support for bulk actions.
Common Customizations:
Creation of custom list views.
Addition of assignment rules.
Implementation of priority queuing.
5. Sendblue Send Message
Purpose: Reusable messaging interface for message transmission.
Features:
Message composition functionality.
Support for media attachments.
Selection of message effects (iMessage).
Common Customizations:
Integration of message templates.
Implementation of compliance verification.
Inclusion of automated follow-up sequences.
How to Clone and Customize FlowsStep 1: Access Flow Builder
Navigate to Setup → Process Automation → Flows.
Locate the desired Sendblue flow for customization.
Click on the flow name to access its details.
Step 2: Clone the Flow
Click the dropdown arrow adjacent to the flow name.
Select “Save As” or “Clone”.
Assign a unique name to the new flow (e.g., “Custom_Sendblue_Lead_Texting”).
Provide a description detailing the intended customizations.
Step 3: Customize the Flow
The cloned flow will open within Flow Builder.
Implement the desired modifications:
Incorporate new elements (screens, actions, decisions).
Adjust existing logic.
Update field mappings.
Add custom Apex actions.
Save all changes.
Step 4: Activate Your Custom Flow
Click “Save” to preserve modifications.
Click “Activate” to enable the flow for use.
Update all relevant references to utilize your custom flow instead of the original.
Best Practices for Flow Customizationâś… DO:
Establish a naming convention: Employ prefixes such as “Custom_” or your organizational abbreviation.
Document changes: Include comprehensive descriptions outlining all modifications.
Conduct thorough testing: Always test in a sandbox environment prior to deployment in production.
Implement version control: Maintain records of various versions and changes.
Preserve original references: Note which original flow your custom version is based upon.
❌ DON’T:
Directly modify original flows: These are read-only and will be overwritten during package updates.
Compromise core functionality: Ensure the integrity of essential Sendblue features.
Disregard governor limits: Be mindful of Salesforce limitations when increasing complexity.
Omit testing: Always rigorously validate your customizations.
Advanced Customization ExamplesExample 1: Incorporating Lead Scoring into Sendblue Leads Flow
Clone the “Send_Blue_Leads” flow.
Insert a Decision element subsequent to lead creation.
Establish branches based on lead source or other criteria.
Add Assignment elements to configure the lead score.
Include an Update Record element to save the score.
Example 2: Custom Message Templates in Send Message Flow
Clone the “Sendblue_Send_Message” flow.
Add a Screen element for template selection.
Create Text Template resources for each message type.
Insert a Decision element to apply the selected template.
Transmit template content to the Send Message action.
Example 3: Automated Follow-Up in Conversation Management
Clone the “Sendblue_Conversation_Management” flow.
Add a Wait element following the initial message transmission.
Configure the wait for a specified time period.
Insert a Decision to ascertain if a response has been received.
Include an action to dispatch a follow-up if no response is detected.
Flow Template Architecture
All Sendblue flows are configured with the following attributes:
isTemplate=”true”: Enables cloning and customization capabilities.
API Version 63.0: Utilizes the latest Salesforce API features.
Lightning Flow Builder: Employs a modern, visual flow design interface.
Auto-Layout Canvas: Provides automatic visual organization.
Troubleshooting Flow CustomizationsCommon Issues and Solutions:
Issue: Custom flow is not visible in available actions.
Solution: Confirm that the flow is activated and possesses the correct input/output variables.
Issue: The original flow executes instead of the custom version.
Solution: Update all references (Process Builder, Apex, other flows) to direct to your custom flow.
Issue: Custom flow encounters a permissions error.
Solution: Verify that all users have the requisite object and field permissions.
Issue: Package upgrades overwrite customizations.
Solution: Custom flows are distinct from package flows and will not be overwritten.
Flow Governance and Limits
When customizing flows, adherence to Salesforce limits is imperative:
2,000 flow elements per flow.
50,000 records retrieved per transaction.
100 SOQL queries per transaction.
150 DML statements per transaction.
Support
For support, message your designated Sendblue slack channel