diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php
index d23177ca232..1f99b92d214 100644
--- a/htdocs/core/class/html.formmail.class.php
+++ b/htdocs/core/class/html.formmail.class.php
@@ -890,7 +890,7 @@ class FormMail extends Form
//input prompt AI
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
if (isModEnabled('ai') && $apiKey = dolibarr_get_const($this->db, 'AI_CHATGPT_API_KEY', 0)) {
- $out .= $this->getHtmlForInstruction($arraydefaultmessage, $helpforsubstitution);
+ $out .= $this->getHtmlForInstruction();
}
// Message
if (!empty($this->withbody)) {