Skip to content

Commit

Permalink
changed users to mail ids, added mail_template to integration fields …
Browse files Browse the repository at this point in the history
…for mail channel
  • Loading branch information
spandan_mondal committed Dec 19, 2024
1 parent 212158e commit 0900525
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kairon/shared/channels/mail/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ def __init__(self, bot):
self.bot = bot
self.config = ChatDataProcessor.get_channel_config(ChannelTypes.MAIL, bot, False)['config']
self.intent = self.config.get('intent')
self.mail_template = self.config.get('mail_template', MailConstants.DEFAULT_TEMPLATE)
self.mail_template = self.config.get('mail_template')
if not self.mail_template or len(self.mail_template) == 0:
self.mail_template = MailConstants.DEFAULT_TEMPLATE
self.bot_settings = BotSettings.objects(bot=self.bot).get()
self.state = MailProcessor.get_mail_channel_state_data(bot)
bot_info = Bot.objects.get(id=bot)
Expand Down

0 comments on commit 0900525

Please sign in to comment.