Actions are how agents get things done. These are the tools the agent uses to do its job. Learn more about agent actions.
Add Action to Get Document ID from Email
- Open your newly created topic, go to Topic Details, and open the Topics’s Actions tab.

-
Click New → Create New Action. Enter action details.
- Action Type: Flow.
- Under Reference Action, select your flow: Document ID from Email.
-
Click Next.
-
Start to configure the agent action.
- Agent Instructions: This action is used to identify the bank statement files associated with the contact as referred by the email address. Email address has to be given by the user.
- Loading Text: Finding contact.
-
Under Inputs
- Mark
contact_emailas Required input, and enter Instructions: "Ask user to enter the email address". - Leave the other listed inputs as they are, or blank or as
NA.
- Mark
-
Under Outputs: Check the "Show in conversation" checkbox for all outputs.
-
Click Finish

Add a Bank Statement Analysis Action
-
Open your newly created topic, go to Topic Details and open the Topics’s Actions tab.
-
Click New and then Create New Action. Enter action details.
- Action Type: Flow
- Under Reference Action, select your flow: Bank Statement Extraction
-
Click Next.
-
Start to configure the agent action.
- Agent Instructions: Copy the instructions below. Replace the Placeholder values with those you obtained in the prerequisite steps. See Prerequisite 1 - Create an External Client App and Prerequisite 2 - Retrieve Your Salesforce Domain URL.
- Loading Text: Invoking Document AI.
This is the action to invoke the document AI capability to extract the detailed information from the bank statements so that we can determine loan eligibility. Execute the Extract Bank Statement action with these parameters: Org_Domain: "https://Placeholder.my.salesforce.com" Client_Id: “Placeholder” Client_Secret: "Placeholder” Document_Type: “application/pdf” LLM_Model: "llmgateway__OpenAIGPT4Omni_08_06" ContentDocumentId: {get from previous action} IDPConfigId: “bank_stmt_analyzer” If Status = "Success", pass ExtractedDataJson to the analysis prompt 4. If Status = "Failed", show the ErrorMessage to the user
note: You don’t need to change anything under Inputs or Outputs. If needed, enter “NA” for mandatory fields.
- Click Finish.