---
title: "Attach Sofi-suggested knowledge to tickets"
site: admin
version: 1.11
versions: "all"
url: https://docs-new.servicely.ai/admin/1.11/sofi/attach-suggested-knowledge/
type: task
application: knowledge
last_updated: 2026-10-18
commit: c0e55f26ec7b
---


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 `administrator` role.
- Sofi must show suggestions on the ticket form, and the instance must hold published knowledge articles. See [Show Sofi suggestions on a form](page:sofi/show-sofi-suggestions-on-a-form).
- To change how an attached article is shared, you need to be able to edit UI events.

## Steps

<Steps>
  <Step>
    Check that the application property `system.feature.override.show-new-sofi-widget-on-forms` is `true`, which is the default. The **Sofi Smart Search** tab then shows an **Attach** button under every suggested article.
  </Step>
  <Step>
    If you turned that property off, forms use the legacy Sofi client. Create the application property `sofi_ai.config.settings.ui.kbLink.Knowledge` with **Property type** boolean and **Value** `true`, so the legacy pane shows an **ATTACH** link.
  </Step>
  <Step>
    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**.
  </Step>
  <Step>
    To post the article's content instead of a link, find this line in the script:

    ```javascript
    client.setJournalArticle(current.ClientJournal, kbArticle);
    ```

    Replace it with:

    ```javascript
    current.ClientJournal(kbArticle.Content);
    ```
  </Step>
  <Step>
    Repeat the change for the other journal fields the script sets. On the incident UI event this includes `current.MajorIncidentJournal`, which you replace with `current.MajorIncidentJournal(kbArticle.Content);`.
  </Step>
  <Step>
    Save the UI event.
  </Step>
</Steps>

## 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.

## Related

- [Intelligent search](page:sofi/intelligent-search)
- [Show Sofi suggestions on a form](page:sofi/show-sofi-suggestions-on-a-form)
- [Knowledge articles and their lifecycle](page:knowledge/knowledge-lifecycle)
- [UI events](page:automation/ui-events)
