Attach Sofi-suggested knowledge to tickets
Let agents attach a knowledge article that Sofi suggests to the ticket they are working on, and choose how it reaches the requester.
Administrators use this page to let agents attach the articles Sofi suggests to a ticket. It also shows how to change the way an attached article reaches the requester.
Before you begin
- You need the
administratorrole. - Sofi must show suggestions on the ticket form, and the instance must hold published knowledge articles. See Show Sofi suggestions on a form.
- To change how an attached article is shared, you need to be able to edit UI events.
Steps
-
Check that the application property
system.feature.override.show-new-sofi-widget-on-formsistrue, which is the default. The Sofi Smart Search tab then shows an Attach button under every suggested article. -
If you turned that property off, forms use the legacy Sofi client. Create the application property
sofi_ai.config.settings.ui.kbLink.Knowledgewith Property type boolean and Valuetrue, so the legacy pane shows an ATTACH link. -
To change how an attached article is shared with the requester, go to Administration → Business Logic → UI event and open the event for the ticket table. Its name ends in “Enable sofi on form load”, for example Incident - Enable sofi on form load.
-
To post the article’s content instead of a link, find this line in the script:
client.setJournalArticle(current.ClientJournal, kbArticle);Replace it with:
current.ClientJournal(kbArticle.Content); -
Repeat the change for the other journal fields the script sets. On the incident UI event this includes
current.MajorIncidentJournal, which you replace withcurrent.MajorIncidentJournal(kbArticle.Content);. -
Save the UI event.
Result
When an agent attaches a suggested article, the article is linked to the ticket in the AttachedKnowledge field. By default a link to the article is also placed on the client journal, or on the major incident journal for a major incident. On incidents, the closure notes record “Attached knowledge article:” and the article number. If you changed the UI event, the article’s content is placed on the journal instead.