mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
AI Feature Ticket Summary: Summarieze an entire ticket
This commit is contained in:
14
js/ai_ticket_summary.js
Normal file
14
js/ai_ticket_summary.js
Normal 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.');
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user