Skip to main content

#Einstein Bots1 discussing

It seems the only way to end Messaging Sessions automatically is via the bot.

For Enhanced Messaging we can't end sessions via the list view, the only way to do it is via the record directly or the bot.

So my question would be, is there a way to redirect a Messaging Session to the bot after it has been routed to an agent?

If so, I would be able to close Sessions with the bot.

The goal is for the agents to be able to work on the current Messaging Sessions when starting the day rather than having to handle Messaging Sessions from the previous days where the customers are not even there anymore.

 

Any help is appreciated!

Thanks!

 

Luca

 

@Service Cloud - Einstein Bots 

3 answers
0/9000

I'm trying to redirect to a Dialog using a variable set by an answer to a Dynamic Question. The options from the Dynamic Question are records from ConversationDefinitionDialog, and I'm using the MasterLabel field as the format formula.

 

For more context, this is the doc that says it can be done, but it doesn't explain how exactly. https://help.salesforce.com/s/articleView?id=release-notes.rn_einstein_bots_redirect_variable.htm&release=242&type=5

 

Is it expecting a ConversationDefinitionDialog record or a different kind of object?

 

@Service Cloud - Einstein Bots 

7 answers
0/9000

Hi community,

I'm getting a persistent generic error when trying to activate Build Model on an Enhanced Einstein Bot (pt-BR), and I can't pinpoint the cause. 

Einstein Bot (Enhanced) —

 

Setup:

  • 61 intents total
  • 7 intents with 20 utterances each and mlIntentTrainingEnabled = true
  • 54 intents with 3–10 utterances and mlIntentTrainingEnabled = false
  • No Intent Sets, Cross-Lingual disabled, all utterances locally defined

One additional note on utterance quality: There are no fully duplicate utterances (identical punctuation and casing), but some phrases appear more than once across intents with case variations only

 (e.g., the same sentence in all-lowercase vs. title case). It's unclear whether the NLP pipeline treats these as duplicates during the build process.  

 

The issue: Build Model always fails with "Couldn't build model." — no further detail.

Interestingly.  

 

if I drop any trained intent below 20 utterances, the error 

changes

 to the descriptive validation message listing the affected intent. This confirms the system recognizes my trained intents and their counts — yet the build still fails silently when all requirements appear to be met. 

error_intents.png

 

My suspicion: There may be orphaned MLIntent records in the org — intents previously deployed and later removed from metadata without

 explicit destructive deletion — that are corrupting the ML Domain state without surfacing a clear error. 

 

Has anyone seen this before? Any way to get more detail beyond the generic UI message?

Thanks! 

 

 

 

#Einstein Bots

1 answer
0/9000

ITA

 

Ciao a tutti, improvvisamente due dei nostri Bot non stanno funzionando:

  • Se l'input viene dal canale (WhatsApp) il Bot entra nella conversazione per poi subito uscire, ed lasciare la gestione da un agente umano (vedi allegato '1.PNG')
  • Tramite la preview testuale, nel backend, riceviamo l'errore in oggetto (è solo la parte iniziale, il resto in allegato 'ERRORE CHAT PREVIEW').

Ormai è una settimana e non riusciamo a venirne a capo. Idee ?? 

Grazie.  

 

******************************************************************************************************************* 

ENG 

 

Hi all, suddenly two of our Bots stop working:

  • When input comes from the external channel (WhatsApp), the Bot leave soon the conversation and it's forwarded to agents (attachment '1.PNG')
  • If we try to trigger the text preview, in background site, we get the error in subject (only the 1st part, the rest is in attachment 'ERRORE CHAT PREVIEW').

It's just a week, and we don't know what else to check. Any ideas ? 

Thanks!

1 answer
  1. Mar 12, 11:50 AM

    ITA

     Dunque alla fine grazie al supporto interno abbiamo trovato la soluzione. Alcuni file di asset erano stati rimossi, e pertanto il Bot non riusciva a compilare ed attivarsi. 

     

    ENG

     Finally we found the error! Some asset files have been removed, so the Bot was unable to compile and start. 

0/9000

Hi, Trailblazers!

 

I’ve successfully configured and deployed my Einstein Bot for a Web Chat channel and added it to my Experience Cloud site. While the chat icon appears on the portal, customers can’t click on it to start a conversation—it’s unresponsive.

 

What I’ve checked so far:

The bot is active and tested successfully within Salesforce.

The Web Chat channel is set up in Omni-Channel, and the bot is assigned as the agent.

The Embedded Service code is correctly embedded in the portal.

The chat component is added in Experience Builder, and the icon displays on the site.

The Problem:

The chat icon is visible but not functional. Customers can’t click it to initiate a chat.

 

Has anyone faced a similar issue and resolved it?

Any help or guidance would be greatly appreciated!

 

#Einstein Bots  #Trailhead

 

#TrailblazerCommunity  #TrailblazerCommunityHelp  #Trailblazercommunitygroup

 

#EmbeddedServices  #Embedded Service Chat  #Embedded Chat

6 answers
  1. Mar 11, 8:16 AM

    Hi @Sirlene Baratela ,  I’m running into this exact same issue where the chat icon is visible in the Experience Builder but non-clickable and disappears on the live site. Were you able to find a fix or a specific setting that was causing this? 

0/9000
1 answer
0/9000

i am using a omni channel flow in messaging for invoking bot 

But still my chatbot is not routing to bot and in text preview the following error occur :

 

There was a problem building the bot configuration. Could not find invocable action of type flow for id 3005i0000011bbr

 

can anyone tell why my bot is not invoking

 

@* Service Cloud *

2 answers
  1. Nov 2, 2023, 2:51 PM

    The error may occur when an apex class previously had an invocable method, but no longer does. 

    Please also review the affected bot dialog causing the issue and ensure there are no inactive dialogs. 

    Or if a flow was inactive or there was a change from auto-launched to something else (e.g. screen flow).

0/9000

we don't have service cloud in my project  . we want live chat agent interact on Einstein bot 

but  when I click on chat it showing service cloud required 

please check attachment 

#Sales Cloud #Salesforce #Trailhead Challenges #Salesforce Developer #Sales Cloud Einstein #Einstein Bots

1 answer
  1. Feb 4, 9:05 AM

    Hello @Nilesh Dhimdhime

     

    You don’t necessarily need the "Service Cloud Unlimited" edition. You can often purchase Digital Engagement as an add-on. This is a standalone license that enables Chat and Messaging (SMS, WhatsApp, etc.) and includes a set number of Einstein Bot conversations. Contact your Salesforce account executive to get the right quote. 

     

    To see exactly what you’re missing, go to:

    1. Setup > Company Information.
    2. Look at the Feature Licenses related list.
    3. Check if you have Chat User or Messaging User available.

     

    Hope this helps :)

0/9000

Hi everyone.    We would like to transition from deploying Einstein bots via changesets to tracking them in git and using cicd for deployments of new versions to between environments.  I've encountered a couple of issues when trying this:   

  1. Bot User References: We use specific user for our Einstein bots. Therefore bot metadata contains org-specific user references (e.g., botUser field with sandbox-specific suffixes like .sandbox1, .sandbox2). These don't transfer cleanly between environments.
  2. Active bot versions can't be updated via Metadata API - do you create new versions each deployment, or deactivate before deploying?
1 answer
  1. Khyati Mehta (InfinySkills) Forum Ambassador
    Jan 16, 5:13 PM

    Hello Vitaly, 

     

    For the bot user reference, this is a known pain point. The bot metadata does store an org-specific UserId / username, so it won’t translate cleanly across sandboxes. Most teams handle this by standardizing the bot user username across all orgs so the reference resolves automatically. If that’s not possible, the usual workaround is to exclude the botUser field from source control and then set/update it post-deploy using a script, Flow, or manual step. Some teams also use a small post-deploy Apex script to remap the user based on alias.

    For active bot versions, you’re right — you can’t update an active version via the Metadata API. The common CI/CD pattern is to always deploy a new bot version and then activate it in the target org. Deactivating and re-deploying an existing version is risky and not automation-friendly. In practice, CI/CD deploys a new version, validates it, and then either auto-activates via a post-deploy step or leaves activation as a controlled/manual step. Hope this helps!

0/9000

Hi everyone,   

I’m looking for some clarity and real-world experience around Flex Credit consumption, particularly related to Einstein summaries and Prompt Builder.   

We currently have 3,000,000 Flex Credits as part of our Salesforce contract, and we’ve already consumed over 50% of them, with around 1,450,000 credits remaining. This level of consumption is happening much faster than we expected, and it’s not very clear to us what exactly is driving the usage. our contract is till Sept 2028   

At the moment, we’re struggling to find detailed diagnostics within Salesforce that explain where and how these credits are being used.

Specifically, I’m hoping the community can help with the following:

  1. Is there a native way to view a detailed breakdown of Flex Credit usage, for example by feature, prompt, automation, or Prompt Builder?
  2. How are Flex Credits typically consumed for Einstein-generated summaries? we use Einstin to summarize our inbound and outbount ticket calls. 
    • Is usage calculated per summary generated?
    • Does transcript length or prompt complexity affect consumption?
  3. Do automatic or programmatic summaries consume Flex Credits differently compared to user-initiated summaries?
  4. Are Flex Credits allocated for the entire contract duration, or do they reset annually?
  5. For customers using Einstein summaries at scale, what would be considered a normal or expected burn rate?

We want to ensure we’re using Einstein and Prompt Builder efficiently and architecting this correctly, rather than over-consuming credits unnecessarily.   

Any insights, best practices, or lessons learned would be greatly appreciated.

Thanks in advance!   

3 answers
  1. Jan 14, 3:45 PM

    Hi Jefin,  There can be many possible  reasons for  this  

    it can be due to testing many times and also you can ask with your AE and SE for better clarifications.

0/9000