add uuid to first message
This commit is contained in:
@@ -219,11 +219,17 @@ Please note: it does not cover general Odoo usage or functional questions.
|
||||
messagesEl.parentElement.scrollTop = messagesEl.parentElement.scrollHeight;
|
||||
}
|
||||
|
||||
let firstMessage = true;
|
||||
|
||||
async function sendMessage(){
|
||||
let text = input.value.trim();
|
||||
if(!text) return;
|
||||
// show user message
|
||||
|
||||
if (firstMessage) {
|
||||
text = `${text} $uuid:${uuid}`;
|
||||
firstMessage = false;
|
||||
}
|
||||
if(text.toLowerCase().startsWith('/ticket')){
|
||||
text = `/ticket UUID:${uuid} chatId: ${chatId}`; // Add UUID after /ticket
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user