Integration & Automation-AI translation
1. Usage scenarios
Enter a text to get the translation of the specified language.China, Britain, and JapanTranslation of three languages.
2. Procedure
2.1 Step 1: form design
Create two forms to enter the text to be translated and to receive the translation results.
2.1.1 Create an input form
Procedure:
- Create a form named translation document 」.
- Add a single-line text component named text to be translated, which is required. (The operation is shown in Figure 2.1-1)
Figure 2.1-1 add and configure a single-line text component
- Add two drop-down radio components, named "language to be translated" and "target language" respectively, and set them as required. The following table describes the custom option content. The relationship between the component display value and the component option value. (The operation is shown in Figure 2.1-2)
Figure 2.1-2 add and configure the drop-down radio component
The drop-down radio component displays a table corresponding to the value of the option. | |
Drop-down radio component display value | Drop-down radio component option value |
Chinese | zh |
English | en |
Japanese | ja |
- Click save in the upper-right corner of the page.
2.1.2 create a receiving form
Procedure:
- Create a form named AI translation result 」.
- Add a single-line text component named translation result 」. (The operation is shown in Figure 2.1-3)
Figure 2.1-3 add and configure a single-line text component
- Click save in the upper-right corner of the page.
2.2 Step 2: configure the connector
Expand reading:For more information about YIDA connectors, go to the following steps:Integration & Automation
Procedure:
- Background management page> Integration & automation> create Integration & automation> Name the connector AI translation> trigger type select form event trigger> specify trigger the form is translated document 」, click OK 」. (The operation is shown in Figure 2.2-1)
Figure 2.2-1 New connector
- Configure form event trigger: the trigger event is created successfully and the data is filtered to all data. Click save 」. (The operation is shown in Figure 2.2-2)
Figure 2.2-2 configure connector form event triggering
- Select connector application: Select AI application and click next 」. (The operation is shown in Figure 2.2-3)
Figure 2.2-3 select connector application
- Select connector execution action: Select translation execution action and click next 」. (The operation is shown in Figure 2.2-4)
Figure 2.2-4 select connector execution action
- Configure the connector and click save. (The operation is shown in Figure 2.2-5)
Figure 2.2-5 configuration connector execution action
- Add and configure new data nodes. (Operation is shown in Figure 2.2-6)
Figure 2.2-6 Add and configure new data nodes
- Click save in the upper-right corner of the page and click Publish.
2.3 Step 3: submit a form
Submit the translation document form data and trigger the connector. You can view the translation results in the AI translation results form. (The operation is shown in Figure 2.3-1)
Figure 2.3-1 submit form data
3. Effect display
Figure 3.1-1 connector effect display