Could an example be provided for aggregating data for the record chat component?

Certified Associate Developer

I am using a!recordsChatField(). When asking a question, I receive a response like "I apologize, but I am not able to provide information about changing a payroll vendor, as that is not related to the data provided for the RH Project Ref entity. As an AI assistant trained on this specific data, I can only respond to questions regarding the fields and information presented for this entity."  I'm assuming the reason for this response is because I need to aggregate the data in the record.

Within Process HQ I can aggregate all the data in the record with the click of a button.  When using Copilot in Process HQ on the same record, I receive a proper response to the same question since the data is aggregated.  Can someone provide an example of how I can aggregate the record data within the  a!recordsChatField() component?

Here's what I have so far:

  a!recordsChatField(
    label: "Chat",
    instructions: "Type in a question",
    suggestedQuestions: {
      "Sample: What type of request should I submit for transferring participant accounts and data between existing plans at Vanguard?",
      "Sample: What type of request should I submit to change the payroll vendor?"
    },
    initialMessage: "What type of request should I submit for...",
    recordType: 'recordType!{99104bf5-b39e-4534-91e9-37fb68ec2693}RH Project Ref',
    identifier: 1,
    fields: {
      'recordType!{99104bf5-b39e-4534-91e9-37fb68ec2693}RH Project Ref.fields.{9ab83a9a-6fb7-4267-9974-154fd38c1376}requestType',
      'recordType!{99104bf5-b39e-4534-91e9-37fb68ec2693}RH Project Ref.fields.{670be291-c3ff-41e8-b318-708ed56636a0}subRequestType',
      'recordType!{99104bf5-b39e-4534-91e9-37fb68ec2693}RH Project Ref.fields.{4109bfae-9243-47f8-a46d-4e9683bab492}acronym',
      'recordType!{99104bf5-b39e-4534-91e9-37fb68ec2693}RH Project Ref.fields.{375d8520-431e-4049-9bc5-a580f551ee8d}projectType',
      'recordType!{99104bf5-b39e-4534-91e9-37fb68ec2693}RH Project Ref.fields.{9be81479-d946-41e7-9d16-e43d526457d2}qualified',
      'recordType!{99104bf5-b39e-4534-91e9-37fb68ec2693}RH Project Ref.fields.{6f73ed50-6df6-479e-943c-8a00aaabe843}nqp',
      'recordType!{99104bf5-b39e-4534-91e9-37fb68ec2693}RH Project Ref.fields.{e1530dfc-5292-4f3a-a4ba-bff121f6b319}inscope',
      'recordType!{99104bf5-b39e-4534-91e9-37fb68ec2693}RH Project Ref.fields.{dd6bce3f-b766-46af-8b19-6c3e1eba4504}description'
    },
    buttonStyle: "NORMAL"
  )
)

  Discussion posts and replies are publicly visible