add: mailers to admins to update openai key
This commit is contained in:
@@ -9,4 +9,10 @@ class AdministratorNotifications::IntegrationsNotificationMailer < Administrator
|
||||
subject = 'Your Dialogflow integration was disconnected'
|
||||
send_notification(subject)
|
||||
end
|
||||
|
||||
def openai_disconnect
|
||||
subject = 'Your OpenAI integration needs attention'
|
||||
action_url = settings_url('integrations/openai')
|
||||
send_notification(subject, action_url: action_url)
|
||||
end
|
||||
end
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
<p>Hello,</p>
|
||||
|
||||
<p>Your OpenAI integration needs attention. This could be due to an expired or invalid API key, or your OpenAI credit balance may be exhausted.</p>
|
||||
|
||||
<p>To continue using AI features, please update your API key in the integration settings.</p>
|
||||
|
||||
<p>
|
||||
Click <a href="{{action_url}}">here</a> to update your API key.
|
||||
</p>
|
||||
Reference in New Issue
Block a user