Skip to content

Summarize the selected supplier

Use the Summary section to give procurement analysts a short view of the selected supplier’s status and any checks that need attention. A dedicated Supplier Summary workflow builds the summary from the shared fictional supplier records.

Supplier Summary workflow

flowchart TD
    Request([Summary request]) --> Load["Code · Load the selected supplier"]
    Load --> Route{"Switch · Message hint"}
    Route -->|Summary| Summarize["LLM · Summarize supplier status and incomplete checks"]
    Summarize --> Result([Show the text in the Summary section])

Configure the workflow

  1. In DEMO_SUPPLIER_SUMMARY, enable Expose to Agentic Apps.
  2. In Load Selected Demo Supplier, read the supplier ID from $context.$app.$OraAppContext. Look up the ID in the fixture. Return an empty object when the ID has no match.
  3. Set the Switch expression to {{$context.$app.$OraMessageHint}}. Route Summary to Summarize Selected Supplier.
  4. Pass {{$context.$nodes.LOAD_SUPPLIER.$output.result}} to the LLM with the prompt below. Connect the LLM to End and publish the workflow.

Summarize the selected supplier in one or two plain sentences. State the supplier’s name and current status. Call out any missing or pending checks by name and keep their status accurate. If all checks are verified, say so. If there is no matching supplier, ask the user to select one.

Configure the Summary section

Open the Supplier Review Workspace in App Builder. Select Summary, choose Assign Custom Agent, and select Supplier Summary. This sets summary.agentCode in the app source. The Overview and Checks advisors can leave Include in summary? off because the dedicated workflow loads the record it summarizes.

Run the example in Preview

Open Preview, choose Northstar Industrial, and check Summary. Return to the picker, choose Harbor Office Supply, and confirm the summary reflects the new supplier.

Selected supplier Expected summary
Northstar Industrial Northstar Industrial is active. Its insurance certificate is missing.
Harbor Office Supply Harbor Office Supply is inactive. Its tax registration is pending.

See Configure Agents for the alternate setup where section advisors contribute to the summary.