Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

NASK - Reading attachments for prompts

Jayden4
Tera Contributor

I have been told by ServiceNow that custom skills built with Now Assist Skill Kit (NASK) can use content from record attachments within prompts.

 

I haven't been able to find any documentation describing how this is implemented, nor any community discussions covering the topic.

 

For example, if a Risk Event record contains a .docx or .xlsx attachment, how can that attachment content be made available to a NASK prompt? Are there any OOB actions, flows, or capabilities that extract and transform attachment content into a format that can be passed to the prompt?

 

My current assumption is that a custom solution would be required (for example, a subflow that extracts the attachment text and passes it as structured data to the skill), but I wanted to understand whether there is a recommended or standard approach that others are using.

3 REPLIES 3

rpriyadarshy
Kilo Sage

Why do you need JSON format data to be Passed to NASK Prompt?

Using a Sub flow as you said - Read the Content of .DOC File .

Store That in Some Variable 

Pass this Variable into Prompt As Shown Below. Below is Just a Sample.

 

START --->SubFlow to Fetch Docs Contents---> Define Prompt ----> Replace Doc Content Variable into Prompt

 

rpriyadarshy_0-1759719376449.png

 

 

Regards

RP

Is there an OOB subflow that does this, reading the attached document?

Hi Jayden

 

I don't see anything OOTB Available. Refer Below Link which has a Script to Read and Parse an Attachment.

 

https://www.servicenow.com/community/developer-forum/reading-the-content-of-attachment-files/m-p/271...

 

Regards

RP