AI Feature Ticket Summary: Summarieze an entire ticket

This commit is contained in:
johnnyq
2024-12-10 14:03:43 -05:00
parent 501c5fce15
commit 2ac32ab0c5
3 changed files with 111 additions and 0 deletions

14
js/ai_ticket_summary.js Normal file
View File

@@ -0,0 +1,14 @@
$('#summaryModal').on('shown.bs.modal', function (e) {
// Perform AJAX request to get the summary
$.ajax({
url: 'post.php?ai_ticket_summary',
method: 'POST',
data: { ticket_id: <?php echo $ticket_id; ?> },
success: function(response) {
$('#summaryContent').html(response);
},
error: function() {
$('#summaryContent').html('Error generating summary.');
}
});
});