Hi,
first step is deciding if you want to to use NLP or GenAI. If you have access to GenAI, this might be the fastest and easiest solution. We have already couple of vided about DocAI - capability that allows to analyze attachments - Pega GenAI Cookbook: Agentic AI Recipes