How do I dynamically pass a field value into a prompt definition

I want to build a prompt defintion that sends the attachment on the record and sends the field CustomerName to the LLM dynamically based upon the attachment and customer name associated with the record I am processing. How do I reference this in the system prompt and/or user prompt so that the LLM knows about the value I am trying to reference?

Yes you can easily pass in values dynamically into both the user and system prompts.

First, if you want include an attachment in your request to the LLM you will simply include AttachmentGroupId as an input field in your prompt definition. Then in your logic block you will pass a data source into the Run Model Definition action and the attachment on the record will be automatically included in your request. It currently supports single attachments of types PNG, JPG, JPEG, WebP, and or PDF.

Next, if you want to pass values dynamically into your prompt at runtime, you can define the shape of what to pass in in the prompt definition and the dynamic data to pass in in the logic block. When building a prompt definition you will define input fields and then reference the fields in user/system prompt using text interpolation syntax (${InputField}). Then when you call your model definition in a logic block you can map in a data source name for the values to be sourced from at runtime (tip: you can also map in values using in the field mappings).

In the logic block, can I not map in an AttachmentGroupId using field mappings? I have to map in a record DSN?