Notepad Templates: Unable to Use Struct Output from AIP Logic Functions

Problem Summary

I’m trying to use AIP Logic to parse resume text and populate a Notepad template dynamically. However, I’ve hit some limitations that make this difficult.


Use Case

  1. I have a Candidate object with a resume_extracted_text property (string)

  2. I want to parse this text using AIP Logic and extract fields (name, email, skills, etc.)

  3. I want to display these extracted fields in a Notepad template


Current Limitations

  1. Notepad doesn’t accept struct output — It only accepts string output from AIP Logic functions

  2. Only the final output variable is accessible — Intermediate variables in the logic are not available to reference in the Notepad template


Constraints

  • I don’t want to create a new object type just to store the parsed resume data

  • I want to use the extracted data directly in the template without persisting it


What I Expected

Ability to return a struct from AIP Logic and reference individual fields in the Notepad template like {{logicOutput.fullName}}, {{logicOutput.email}}, {{logicOutput.skills}}


Question

Is this a known limitation? Are there any workarounds or alternative approaches to achieve this?

Thanks!

Hi @roushan.kumar,

You’re correct that Notepad templates currently only accept string outputs from AIP Logic functions, not struct outputs. This means you cannot directly reference individual fields from a structured object like {{logicOutput.fullName}} or {{logicOutput.email}} in your template.

Recommended Workarounds

Based on similar use cases, here are some approaches you can consider:

1. Use Functions on Objects Widget with Markdown Formatting

You can create a function that takes your resume text as input and returns a formatted string (potentially using Markdown) that structures all the extracted fields. Then use the “Functions on Objects” widget in your Notepad template:

  • Configure the widget with your Candidate object as input

  • Set the function result format as “Markdown” to get rich text formatting

  • The function would parse the resume and return a formatted string containing all fields

2. Concatenate Struct Fields into a Single String

Within your AIP Logic flow, after extracting the structured data:

  • Create a final step that concatenates all the struct fields into a formatted string

  • Use string templates or formatting to create a readable output

  • Return this formatted string as the final output variable

3. TypeScript Function Wrapper

Create a TypeScript function that:

  • Calls your AIP Logic function as a subroutine

  • Processes the struct output

  • Returns a formatted string suitable for Notepad

The limitation you’ve encountered—only the final output variable being accessible—is indeed a current constraint. Direct struct-to-template field mapping is not yet available.

Hope this helps.

Thanks,
Sanjeeth

1 Like