diff --git a/docs/03-creating-order-status-check.md b/docs/03-creating-order-status-check.md index e75eac82..02d3a8e9 100644 --- a/docs/03-creating-order-status-check.md +++ b/docs/03-creating-order-status-check.md @@ -49,7 +49,7 @@ Example API Response: ``` Configuration steps: -1. Enable "Trigger API" +1. Enable "REST API Calling" 2. Add the API URL with parameter templating: ``` https://fake-store-api.mock.beeceptor.com/api/orders/status?order_id={{ parameters['name'] }} diff --git a/frontend/app/admin/entities/[id]/page.tsx b/frontend/app/admin/entities/[id]/page.tsx index ff01c346..71a54619 100644 --- a/frontend/app/admin/entities/[id]/page.tsx +++ b/frontend/app/admin/entities/[id]/page.tsx @@ -4,6 +4,8 @@ import React, { useState, useEffect, use, KeyboardEvent, useCallback } from 'rea import { getEntity, saveEntity } from '../../../services/entities'; import type { EntityModel, EntityValue } from '../../../services/training'; import { useSnackbar } from '../../../components/Snackbar/SnackbarContext'; +import { Popover } from 'flowbite-react'; +import { QuestionMarkCircleIcon } from '@heroicons/react/24/outline'; const EntityPage = ({ params }: { params: Promise<{ id: string }> }) => { const { id } = use(params); @@ -151,7 +153,36 @@ const EntityPage = ({ params }: { params: Promise<{ id: string }> }) => {
-

Values

+
+

Values

+ +

+ Entity values and their synonyms help identify different ways users refer to the same entity. +

+

+ Example: +

+
+

Value: "credit_card"

+

Synonyms:

+
    +
  • card
  • +
  • credit
  • +
  • visa
  • +
  • mastercard
  • +
+

+ When users mention any of these synonyms, the intent will receive "credit_card" as the entity value. +

+
+
+ } + > + + +
- -
- {formData.parameters.map((param, index) => ( -
-
-
- - updateParameter(index, 'name', e.target.value)} - className="w-full p-2.5 rounded-lg border border-gray-300 focus:ring-2 focus:ring-green-200 focus:border-green-500 transition-colors duration-200" - /> -
-
- - -
-
-
-
+
{formData.apiTrigger && ( -
- - -
-
+
+
+
}) => { url: e.target.value } }))} - className="w-full p-2.5 rounded-lg border border-gray-300 focus:ring-2 focus:ring-green-200 focus:border-green-500 transition-colors duration-200" + className="w-full p-2.5 rounded-lg border border-gray-300 focus:ring-2 focus:ring-green-200 focus:border-green-500" required={formData.apiTrigger} />
-
+