# How to enable the NLP Model to generate Training data automatically in Email Bot application

**URL:** <https://forums.pega.com/t/how-to-enable-the-nlp-model-to-generate-training-data-automatically-in-email-bot-application/10758>\
**Category:** General\
**Tags:** natural-language-processing, financial-services, pega-platform\
**Created:** [February 17, 2026, 2:47pm UTC](https://forums.pega.com/t/how-to-enable-the-nlp-model-to-generate-training-data-automatically-in-email-bot-application/10758 "2026-02-17T14:47:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![YuvarajG16832788](https://avatars.discourse-cdn.com/v4/letter/y/9dc877/32.png) [@YuvarajG16832788](https://forums.pega.com/u/YuvarajG16832788)\
**Post date:** [February 17, 2026, 2:47pm UTC](https://forums.pega.com/t/how-to-enable-the-nlp-model-to-generate-training-data-automatically-in-email-bot-application/10758/1 "2026-02-17T14:47:41Z")

</div>

We are working on an NLP use case where entity extraction from emails with predefined training data is working well. Now, we want to allow end users to contribute to training the NLP model.

In Pega Customer Service, users can right-click on text within an Email Case to select or correct entities. When this is done, training records are automatically generated in the Email channel’s Training Data tab.

However, this feature does not occur in a standalone Email Bot application built with Theme Cosmos.

In Customer Service, this functionality is handled by the pega\_cpm\_IP\_EventManager JavaScript file, which manages entity mapping updates and triggers the creation of training data records in the Email channel.

How can we implement similar training data generation in a non–Customer Service Email channel setup? Any suggestions or best practices would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![VikasRaidhan](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/vikasraidhan/32/23572_2.png) [@VikasRaidhan](https://forums.pega.com/u/VikasRaidhan)\
**Post date:** [February 19, 2026, 6:53am UTC](https://forums.pega.com/t/how-to-enable-the-nlp-model-to-generate-training-data-automatically-in-email-bot-application/10758/2 "2026-02-19T06:53:15Z")

</div>

@YuvarajG16832788 this is expected to work in Email manager portal. Are you using Email cases standalone in work portals?

---

<div class="post-metadata">

**Author:** ![SachinKulkarniS](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@SachinKulkarniS](https://forums.pega.com/u/SachinKulkarniS)\
**Post date:** [February 19, 2026, 7:45pm UTC](https://forums.pega.com/t/how-to-enable-the-nlp-model-to-generate-training-data-automatically-in-email-bot-application/10758/3 "2026-02-19T19:45:35Z")

</div>

Hi @VikasRaidhan,

We are using a standalone case type, where email triage cases are created from Service Email. Our work class inherits from Work-Channel-Triage-Email, and we are leveraging Cosmos-based portals (no Customer Service).

We have noticed that in Customer Service (PegaAppCA), the pyHighlightedMessage section references EntityDropdownController, while in Pega-ProcessEngine, the pyHighlightedMessage section does not.

This missing section appears to control right-click and entity selection functionality for training.

Are you saying that the Email Manager Portal (pyEmailClient) in the Pega Platform offers the same on-the-fly training capability as Customer Service? If so, could you please share the relevant section names? Thanks

We are looking for something like this:

 ![Training.jpg](https://pega1.discourse-cdn.com/pega/original/3X/5/d/5d7e9c41d037f572e1bd9b02e473a3392605f40e.jpeg)

Regards,

Sachin

---

<div class="post-metadata">

**Author:** ![VikasRaidhan](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/vikasraidhan/32/23572_2.png) [@VikasRaidhan](https://forums.pega.com/u/VikasRaidhan)\
**Post date:** [March 12, 2026, 2:13pm UTC](https://forums.pega.com/t/how-to-enable-the-nlp-model-to-generate-training-data-automatically-in-email-bot-application/10758/4 "2026-03-12T14:13:04Z")

</div>

For Theme Cosmos, you also need to install a compatible Email Manager Cosmos component from marketplace. The latest one works on all recent releases as well. It’s a combination of sections and javascripts which I won’t recommend overriding.

---

<div class="post-metadata">

**Author:** ![VikasRaidhan](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/vikasraidhan/32/23572_2.png) [@VikasRaidhan](https://forums.pega.com/u/VikasRaidhan)\
**Post date:** [March 12, 2026, 2:17pm UTC](https://forums.pega.com/t/how-to-enable-the-nlp-model-to-generate-training-data-automatically-in-email-bot-application/10758/5 "2026-03-12T14:17:32Z")

</div>

Here’s the component - [Email Manager Cosmos | Pega](https://community.pega.com/marketplace/components/email-manager-cosmos)?
