Delivery options and prices use case for the Assisted Text Authoring widget
The delivery options and prices use case is an example of how you can configure the Assisted Text Authoring widget. To create the delivery options and prices use case, you must set specific configuration values in the Assisted Text Authoring widget. You must also reset the widget configuration before you configure the widget for the delivery options and prices use case.
-
Reset the widget configuration
See Resetting the configuration of the Assisted Text Authoring widget.
-
Configure business context variables
See Configuring variables for the Assisted Text Authoring widget.
-
Add and configure business context, generate, and save tasks
See Adding tasks for the Assisted Text Authoring widget and Configuring tasks for the Assisted Text Authoring widget.
-
Configure the widget display
See Configuring the display for the Assisted Text Authoring widget.
Configuration values for Business Context Variables
| Field | Sample value |
|---|---|
| Variable | BCCustomerNumber |
| Source | InforCustomerPartyMaster.id1 |
Configuration values for Business Context Tasks
| Field | Sample value |
|---|---|
| Task type | M3 API |
| Task name | GetCustomerTask |
| Program | CRS610MI |
| Transaction | GetBasicData |
| Input | Customer number: {BCCustomerNumber} |
| Output | Select all outputs |
| Field | Sample value |
|---|---|
| Task type | M3 Text Block |
| Task name | GetTextBlockTask |
| Key | Sample value |
|---|---|
| FILE | OCUSMA00 |
| TFIL | OSYTXH |
| KV01 | {UserContext.CONO} |
| KV02 | {BCCustomerNumber} |
| LNCD | {languageCodeVariable} |
| CONO | {UserContext.CONO} |
Configuration values for Generate Tasks
| Field | Sample value | Notes |
|---|---|---|
| Task type | GenAI | |
| Task name | GetDeliveryOptionsTask | |
| Prompt | You are at [location]. Retrieve delivery services and costs by size and weight to {GetCustomerTask.CUA1} {GetCustomerTask.CUA2}{GetCustomerTask.CSCD}. Provide a list of delivery services and costs as an itemized list. | Specify a location in [location]. {GetCustomerTask.CUA1} is address line 1, {GetCustomerTask.CUA2} is address line 2, and {GetCustomerTask.CSCD} is the country code of the customer address. |
Configuration values for Save Tasks
| Field | Sample value |
|---|---|
| Task type | M3 Text Block |
| Task name | SaveDeliveryOptionsTask |
| M3 Text Block task type | Save |
| Key | Sample value |
|---|---|
| FILE | OCUSMA00 |
| TFIL | OSYTXH |
| KV01 | {UserContext.CONO} |
| KV02 | {GetCustomerTask.CUNO} |
| LNCD | {languageCodeVariable} |
| Key | Sample value |
|---|---|
| KFLD | {GetCustomerTask.CUNO} |
| LNCD | {languageCodeVariable} |
| USID | {UserContext.USID} |
| CONO | {UserContext.CONO} |
| Field | Sample value |
|---|---|
| Text header | Delivery Options |
| Text block body | {modalTextblockVariable} |
Configuration values for the widget display
| Section | Field | Sample value |
|---|---|---|
| Main Display Configuration | Text Block | {GetTextBlockTask} |
| Modal Display Configuration | New Text Content | {GetDeliveryOptionsTask} |