Skip to content

Set the title and subtitle from the supplier context

Show which supplier the user is reviewing. The Overview workflow supplies the title and subtitle and also renders the Overview card.

Supplier Overview workflow

flowchart TD
    Start([App request]) --> Supplier["Code · Load selected supplier"]
    Supplier --> Header["Code · Format title and subtitle"]
    Header --> Route{"Switch · Message hint"}
    Route -->|InitTitle| Title["LLM · Render the supplier title"]
    Route -->|InitSubtitle| Subtitle["LLM · Render the supplier ID and status"]
    Route -->|InitDisplay| Overview["LLM · Render the Overview card"]
    Title --> End([Return the requested content])
    Subtitle --> End
    Overview --> End

Configure the workflow

Enable Expose to Agentic Apps for DEMO_SUPPLIER_OVERVIEW and publish it. Read the supplier ID from $context.$app.$OraAppContext and resolve it against the shared supplier fixture. In Format Header Text, return an object with title and subtitle properties. The Code node's Return Type is Object.

Set the Switch expression to {{$context.$app.$OraMessageHint}}.

Hint Output
InitTitle Use a dedicated LLM to emit {{$context.$nodes.FORMAT_HEADER.$output.result.title}} as plain text. Use Supplier Review Workspace when no supplier matches.
InitSubtitle Use a dedicated LLM to emit {{$context.$nodes.FORMAT_HEADER.$output.result.subtitle}} as plain text. Format the subtitle as the supplier ID, a middle dot, and the status in sentence case. Use Select a supplier to start when no supplier matches.
InitDisplay Use the Overview handler to return a Card for the selected supplier.

Configure the app header

  1. Add DEMO_SUPPLIER_OVERVIEW to the Overview section.
  2. In App Settings, select the same workflow in Dynamic Title and Subtitle Agent. The app requests the header from the workflow assigned to the section.

Run the example in Preview

Select Northstar Industrial, then return to the picker and select Harbor Office Supply.

Supplier ID Expected title Expected subtitle
SUP-1042 Northstar Industrial SUP-1042 · Active
SUP-2108 Harbor Office Supply SUP-2108 · Inactive

Related guides
Dynamic Title and Subtitle Agent · Message Hints · Assemble the app