Integrating Alhena With Saleforce Service Cloud
This guide will help you set up the Alhena integration with your Salesforce organization. We offer two integration options:
Email Cases Integration - Bidirectional email support between Salesforce Cases and Alhena
Messaging Integration - Real-time agent messaging in the Salesforce Service Console
You can set up one or both integrations based on your needs.
Prerequisites
Salesforce org with System Administrator access
Email-to-Case enabled (for Email Cases integration)
Embedded Service Deployments configured (for Messaging integration)
Time Required:
OAuth Setup (Required for both): ~10 minutes
Email Cases Integration: ~15 minutes
Messaging Integration: ~15 minutes
Part 1: OAuth Setup (Required for Both Integrations)
This OAuth configuration is required whether you're setting up Email Cases, Messaging, or both integrations.
Steps to Complete
Step 1: Create OAuth Connected App
Setup → App Manager → New Connected App
Basic Information:
Connected App Name:
Alhena IntegrationAPI Name:
Alhena_IntegrationContact Email: Your email address
API (Enable OAuth Settings):
✅ Enable OAuth Settings
Callback URL: (Your Alhena contact will provide the correct URL)
Selected OAuth Scopes:
Full access (full)
Perform requests at any time (refresh_token, offline_access)
Security Settings:
❌ Uncheck "Require Secret for Web Server Flow"
❌ Uncheck "Require Secret for Refresh Token Flow"
✅ Enable Client Credentials Flow
✅ Enable Authorization Code and Credentials Flow
Click Save
After saving, click "Manage Consumer Details"
Send these to your Alhena contact:
Consumer Key (Client ID)
Consumer Secret (Client Secret)
Salesforce Instance URL (e.g.,
https://yourorg.my.salesforce.com)
Part 2: Email Cases Integration
Enable bidirectional email support between Salesforce Cases and Alhena AI.
What You'll Need to Provide to Alhena
Before starting, please send the following information to your Alhena contact:
Bot User Email - The email address of the Salesforce user that will handle AI responses (e.g.,
bot@yourcompany.com) Default it is set to no-reply-gleen-bot@gleen.ai. If you'd like to use a custom address, let the Alhena team know.Sender Email - The Organization-Wide Email Address for AI replies (e.g.,
support@yourcompany.com)Escalation Queue Name (Optional) - The name of your Salesforce Queue for human handoff
Steps to Complete
Step 1: Create Bot User
Setup → Users → New User
Configure the user:
Email:
bot@yourcompany.com(or your chosen bot email)Profile: Standard User or Custom Profile with Case access
User License: Salesforce or Salesforce Platform
Save and activate the user
Step 2: Configure Email-to-Case
Ensure your Email-to-Case is configured to route cases to your bot user.
Step 3: Deploy Alhena Package
Alhena will provide you with a deployment package (AlhenaEmailCaseWebhook.zip).
Login to your Salesforce org
Navigate to Migration → Deploy
Upload
AlhenaEmailCaseWebhook.zip✅ Check "Single Package" (Required!)
✅ Check "Run All Tests" (Required for production orgs)
Click Deploy
Wait for deployment to complete
Step 4: Notify Alhena Team
Contact your Alhena representative to let them know the package has been successfully deployed.
Optional - Escalation Queue:
If you want to use a human escalation queue for handoffs, provide the name of your escalation queue in Salesforce.
Part 3: Messaging Integration
Enable real-time agent messaging in the Salesforce Service Console. (Optional)
If you do not require live chat with human agents, Alhena can configure your integration to create email cases inside of Salesforce Service Cloud instead.
What You'll Need to Provide to Alhena
Please send the following information to your Alhena contact:
Organization ID - From Embedded Service Deployment
Messaging Developer Name - From Embedded Service Deployment
Steps to Complete
Step 1: Get Embedded Service Deployment Details
If you already have an Embedded Service Deployment configured, locate it to get the required details.
To create a new deployment:
Setup → Embedded Service Deployments
Click "New Deployment"
Configure the basic settings:
Deployment Name:
Alhena Messaging IntegrationDeveloper Name:
Alhena_Messaging_IntegrationComplete the wizard with your preferred settings
Save the deployment
Send these two values to your Alhena contact:
Organization ID: Found in the deployment details
Messaging Developer Name: The Developer Name you set above (e.g.,
Alhena_Messaging_Integration)
Step 2: Deploy Alhena Package
Alhena will provide you with a deployment package (AlhenaMessagingWebhook.zip).
Login to your Salesforce org
Navigate to Migration → Deploy
Upload
AlhenaMessagingWebhook.zip✅ Check "Single Package" (Required!)
✅ Check "Run All Tests" (Required for production orgs)
Click Deploy
Wait for deployment to complete
Step 3: Notify Alhena Team
Contact your Alhena representative to let them know the package has been successfully deployed.
Need Help?
If you encounter any issues during setup, please contact your Alhena representative.
It's helpful to include:
Screenshots of any error messages
Which step you're currently on
We're here to help!
Last updated