How to set up the UIpath Connector
What it's all About:
The AX NLG Cloud connector is based on the AX REST API and enables you to automate your publishing workflow by uploading your data, automatically generating the content from your NLG Cloud ruleset and exporting the generated content for further processing back into the UIpath environment.
How to use it:
Once downloaded, you can choose AX Semantics from your activities.
Upload Your Data
The "Add document" option uploads a new dataset to your AX Semantics environment.
Specify which collection you would like to import data into, by adding the collection ID in the respective field.
Add the JSON Data structure you would like to include in the uploaded document. This is the basis of your generated content.
Add the UID (unique ID) and name of the document in case these two fields are not included in your data structure yet.
Add your refresh token to authenticate the connection.
The output of this API call will be the AX Semantics "document id", by which you can target this data set in further activities/API calls.
TIP
Set the collection to autogenerate to automatically generate content each time an import is made. You do that on the AX NLG Cloud platform in the data sources view by editing a collection:
- The checkbox “autogenerate new documents”, sets the collection to automatically trigger a generation for each newly imported dataset.
- The checkbox “autogenerate existing documents after changes”, sets the collection to automatically trigger a new generation for datasets where an update in the imported dataset is detected.
Getting the Content
The Get Document option delivers the generated content for one of your uploaded documents.
The generated content will then be accessible in your UIpath environment for further processing.
Add the AX Semantics "document ID" from your import of the document.
Add your refresh token to authenticate the connection.
The output of this API call will be the generated content, the generated content in HTML format and the content generation status.