The CreatorCon Call for Content is officially open! Get started here.

NASK - Reading attachments for prompts

Jayden4
Tera Contributor

I have been informed by ServiceNow that it is possible to create custom skills in Now Assist Skill Kit that are able to read attachments on records to parse into the prompt. 

 

How are users doing this? I could not find any documentation on how to achieve this, and there are no topics here on the subject that a search could locate. 

 

A use case would be I have a risk event with a .doc attached. How can I extract the text from the .doc (as JSON probably) and input this into the NASK prompt? Are there OOB subflows that are built to convert .doc files to a JSON string? The only way I could think of is having subflows that convert attachments to JSON, but am I missing something?

 

I'm interested to see how others are getting around this situation to have NASK read attachments on records. 

3 REPLIES 3

rpriyadarshy
Mega Guru

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