Understanding the Bi-Directional Email Feature
The bi-directional email feature in Agentforce Marketing allows for seamless communication between customers and agents. However, setting it up can be tricky, and the ‘Select a valid sender code’ error can be misleading, especially since sender codes are typically associated with SMS.
Root Cause of the Error
The root cause of the error is that the sender code is not properly set up in the ‘Forward Conversation to Bot or Agent’ activity. This is a required field, even when sending emails, and it needs to be configured correctly to activate the flow.
To fix this issue, you need to set up a valid sender code in the ‘Forward Conversation to Bot or Agent’ activity. You can find more information on how to set up the bi-directional email feature in the official Salesforce documentation.
Once you have set up the sender code, you should be able to activate the flow without encountering the ‘Select a valid sender code’ error.
Step-by-Step Solution
To set up the bi-directional email feature, follow these steps:
BiDirectionalEmailSetup.js
// Set up the sender code in the 'Forward Conversation to Bot or Agent' activity
var senderCode = 'YourSenderCode';
// Configure the 'Forward Conversation to Bot or Agent' activity
var activity = {
'senderCode': senderCode,
'action': 'email'
};
Checklist for Setting up Bi-Directional Email Feature
- Set up a valid sender code in the ‘Forward Conversation to Bot or Agent’ activity
- Configure the ‘Forward Conversation to Bot or Agent’ activity with the correct action (email)
- Make sure the flow is activated correctly
- Test the bi-directional email feature to ensure it is working as expected
- Refer to the official Salesforce documentation for more information on setting up the bi-directional email feature
Frequently Asked Questions
What is the bi-directional email feature in Agentforce Marketing?
The bi-directional email feature in Agentforce Marketing allows for seamless communication between customers and agents.
Why do I need to set up a sender code for the bi-directional email feature?
The sender code is required for the bi-directional email feature, even when sending emails, and it needs to be set up in the ‘Forward Conversation to Bot or Agent’ activity.
Where can I find more information on setting up the bi-directional email feature?
You can find more information on setting up the bi-directional email feature in the official Salesforce documentation.
What are some common issues that can occur when setting up the bi-directional email feature?
Some common issues that can occur when setting up the bi-directional email feature include the ‘Select a valid sender code’ error and issues with configuring the ‘Forward Conversation to Bot or Agent’ activity.
Need help shipping this in production?
Genetrix builds and untangles Salesforce Marketing Cloud and Agentforce setups for teams that want it done right the first time. If anything in this post sounds familiar, talk to us before it ships.