# Seeking Help: Exporting AIP Agent Analysis Output to ReqIF in Foundry Workshop

**URL:** <https://community.palantir.com/t/seeking-help-exporting-aip-agent-analysis-output-to-reqif-in-foundry-workshop/3861>\
**Category:** Ask the Community\
**Tags:** workshop, functions, aip-agents\
**Created:** [May 14, 2025, 1:53pm UTC](https://community.palantir.com/t/seeking-help-exporting-aip-agent-analysis-output-to-reqif-in-foundry-workshop/3861 "2025-05-14T13:53:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MustaphaLear](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/mustaphalear/32/4339_2.png) [@MustaphaLear](https://community.palantir.com/u/MustaphaLear)\
**Post date:** [May 14, 2025, 1:53pm UTC](https://community.palantir.com/t/seeking-help-exporting-aip-agent-analysis-output-to-reqif-in-foundry-workshop/3861/1 "2025-05-14T13:53:20Z")

</div>

**Context:**  
I’m working with a Workshop application in Foundry where I use an AIP Agent to analyze stakeholder requirements. The agent produces structured analysis results for each requirement, including fields like Requirement ID, Requirement Text, Feature Assignment, Subgroup, and Safety/Cybersecurity attributes (see attached screenshot for a dummy example)1.

**Goal:**  
I need to export these analysis results (currently as objects in an object set) to a ReqIF (Requirements Interchange Format) file so that they can be shared with external requirements management tools.

## What I’ve Tried

- I can access and display the analyzed requirements as objects in the Workshop app.
- I’m able to trigger the analysis and view the structured output, but I’m not sure of the best way to transform this object set into a valid ReqIF file and make it downloadable for users.

## My Questions

1. **Is there a recommended approach or best practice for exporting object sets (like requirements analysis outputs) to ReqIF format in Foundry?**
2. **Are there any built-in tools, transforms, or community solutions for mapping object attributes to ReqIF XML structure?**
3. **If not, what’s the best way to implement this-should I use a Python transform, a Code Workbook, or something else?**
4. **How do others handle exporting complex object data (with nested fields and reasoning) to ReqIF or similar standards?**

## Example of the Data Structure

_Here’s a dummy example of the kind of data I want to export (not real data):_

- **Requirement ID:** 39980
  - **Requirement Text:** “Operating voltage is defined …”
  - **Primary Feature Assignment:** Input Monitoring
  - **Subgroup:** Digital and Analog
  - **Safety Related:** No
  - **Cybersecurity Related:** No
  - **Reasoning:** “Specifies the operating voltage …”

- **Requirement ID:** 39970
  - **Requirement Text:** “The supplier shall analyze HW components…”
  - **Primary Feature Assignment:** Technical
  - **Subgroup:** Technical Safety
  - **Safety Related:** Yes
  - **Cybersecurity Related:** No
  - **Reasoning:** “Directly related to safety analysis and risk assessment of hardware components…”

## What I’m Looking For

- **Sample code snippets** or references for exporting Foundry object sets to ReqIF.
- **Advice on mapping fields** (e.g., how to handle nested or optional attributes).
- **Tips for integrating this export** into a Workshop app (e.g., providing a download button).
- **Any caveats** or lessons learned from others who have done similar exports.

## Additional Info

- I’ve searched the community but haven’t found a direct solution yet2[4](https://community.palantir.com/t/welcome-to-the-developer-community/258)[3](https://community.palantir.com/t/ask-the-community/19).
- I’m following community guidelines and have removed all sensitive data from this post[8](https://dev.to/grahamthedev/how-to-write-the-highest-quality-posts-on-dev-13-top-tips-cj6)[6](https://www.palantir.com/docs/foundry/assist/custom-documentation-best-practices).
- Happy to clarify or provide more dummy data if it helps!

**Thanks in advance for any guidance or examples!**  
_Tagging: workshop, object-sets, aip-agent, data-export, reqif_

> _If you have tackled a similar challenge or have code for exporting to ReqIF, I’d love to hear about your approach!_

---

<div class="post-metadata">

**Author:** ![michaeld](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@michaeld](https://community.palantir.com/u/michaeld)\
**Post date:** [May 14, 2025, 2:01pm UTC](https://community.palantir.com/t/seeking-help-exporting-aip-agent-analysis-output-to-reqif-in-foundry-workshop/3861/2 "2025-05-14T14:01:14Z")

</div>

Workshop supports function backed exports which should allow you to generate an xml file 🙂  
https://www.palantir.com/docs/foundry/workshop/widgets-button-group#function-backed-export

---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/system/32/3_2.png) [@system](https://community.palantir.com/u/system)\
**Post date:** [July 13, 2025, 2:01pm UTC](https://community.palantir.com/t/seeking-help-exporting-aip-agent-analysis-output-to-reqif-in-foundry-workshop/3861/3 "2025-07-13T14:01:17Z")

</div>

Closed on July 13, 2025, 2:01pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
