Skip to content

Commit

Permalink
added bot answer
Browse files Browse the repository at this point in the history
  • Loading branch information
akanshaaa19 committed Nov 11, 2024
1 parent 8180064 commit 340c716
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
14 changes: 13 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,19 @@ client.on("threadCreate", async (thread) => {
" team please check if this needs any further attention.");
const category = await getAnswerFromOpenAIAssistant(message, categoryPrompt);
let values = [
[threadId, dayjs().format("YYYY-MM-DD HH:MM"), author, title, message],
[
threadId,
dayjs().format("YYYY-MM-DD HH:MM"),
author,
title,
message,
"", //tags
"", //First Response
"", //Response time
"", //Closed at
"", //Closure Time,
answer,
],
];
await writeToSheets(values);
}
Expand Down
14 changes: 13 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,19 @@ client.on("threadCreate", async (thread) => {
);

let values = [
[threadId, dayjs().format("YYYY-MM-DD HH:MM"), author, title, message],
[
threadId,
dayjs().format("YYYY-MM-DD HH:MM"),
author,
title,
message,
"", //tags
"", //First Response
"", //Response time
"", //Closed at
"", //Closure Time,
answer,
],
];

await writeToSheets(values);
Expand Down

0 comments on commit 340c716

Please sign in to comment.