Add Actions

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 

  1. Open your newly created topic, go to Topic Details, and open the Topics’s Actions tab.

Create New Action

  1. Click NewCreate New Action. Enter action details.

    • Action Type: Flow.
    • Under Reference Action, select your flow: Document ID from Email.
  2. Click Next.

  3. 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.
  4. Under Inputs

    • Mark contact_email as 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.
  5. Under Outputs: Check the “Show in conversation” checkbox for all outputs.

  6. Click Finish

Input-Output Configuration

Add a Bank Statement Analysis Action 

  1. Open your newly created topic, go to Topic Details and open the Topics’s Actions tab.

  2. Click New and then Create New Action. Enter action details.

    • Action Type: Flow
    • Under Reference Action, select your flow: Bank Statement Extraction
  3. Click Next.

  4. Start to configure the agent action.

1This 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

You don’t need to change anything under Inputs or Outputs. If needed, enter “NA” for mandatory fields.

Note

  1. Click Finish.

Next Step 

Activate, Test and Configure Your Agent