How to use a Data List Command to load inputs URLs using shared file

Steps to create an agent using a shared file to Load input urls in the Data List Command


How to create shared file ?

  • In the Sequentum Cloud dashboard page, navigate to any spaces and then click on the New Shared File section on the dashboard page. Upload the CSV or Text file in ‘Create Shared File’ page to make it accessible for your agent

How to use a shared file to load multiple URLs?

  • In the Data List command, select the uploaded shared file as the data source to load input URLs.

How to configure the URL command to load the URLs?

  • In the agent editor, Use the "URL" command to access the URLs from your uploaded shared file by using the "Data list" command.

Sequentum Cloud enables users to create agents that can efficiently handle multiple URLs by using shared files. In this guide, we’ll walk through the steps to create an agent in Sequentum Cloud that uses an input file to load and process multiple URLs through the shared file.


How to create a shared file ??

Step 1: Open the dashboard page and navigate to any of the Space and then click on the New Agent Tab and select the option ‘New Shared File

https://lh7-rt.googleusercontent.com/docsz/AD_4nXf2PPOSMTEB2776NxePz1qACnGi5zRFcfgsRpvTBtJb5phvTVdYYt4A0_hWuOQEPn5cw1hOLfGaexj_o5Do8YIYkAWtWqJ_Dtz7vJIxF9J0pRbeZ7F9MyrpVPzDXtGYIKQHB0G_ug?key=_rUX5Em7UEL73gX9z6WCeA


This will open the 'Create Shared File' window, where you can upload the file you wish to access in the Data List command.

https://lh7-rt.googleusercontent.com/docsz/AD_4nXdYIIobCc7xY-f-U28tB6fP-EaDSV1ZtisRpJrNDjEnaWlDxbXLxZUc8X6nHDp_v6EABxi2Y48lVF9OonnwJupCWRepwSahKYUP2ALXzkWqq4Cs3QImBAi8nOMqT6J_0qu5RHLFJg?key=_rUX5Em7UEL73gX9z6WCeA


Step 2: Open the editor window and navigate to the Agent command and then click on the 'Extract' icon as shown below to proceed. This will open a list of commands

https://lh7-rt.googleusercontent.com/docsz/AD_4nXcMbT-92ZekuurfIpTYYL-sd04UPXmmRmzyXf8G1VoZ6Qu7KHJqdgdPRWeaWo7X_F_xMxUcnbyi1c0bC_YEhpp7BFcpNC1FjXfAvvquAn7uYoFUP7LglZI9ecWCc2S0VkEPa5Cudk5iY6tDb0bgz3gVPjQ?key=_rUX5Em7UEL73gX9z6WCeA

Step 4: Next, select the 'Data List' command as shown below…

https://lh7-rt.googleusercontent.com/docsz/AD_4nXfin8DgeXfPfTkmoHJTqczCnDzd8RHdPWCfsKy-AbHUNDstN_WCo8jMNmhKKlCihV4syfilvxJY8BahaF-aPZqfGTDlXHAqdPJU3UOir7fzUkMW-MKUqa6SxhUkQoERModldKouVS1crigsRi01nioJ8fSO?key=_rUX5Em7UEL73gX9z6WCeA

Step 5: After adding the 'Data List' command, navigate to the 'List' option.

https://lh7-rt.googleusercontent.com/docsz/AD_4nXe4sV7ig9bB8pKPAw1xhi1M9VICiBXbyS_bURzkr1VyMYC8zt75K17sglIFbdByL9h8R2UxbVhmPT6zzY-H6Qc-6xhMuaZKRoadjIJmo_jqLthEo3XHtauYcw9kUCbAC5_grPN36MLLXIdKugxJkg_yq17W?key=_rUX5Em7UEL73gX9z6WCeA

Step 6: Select 'Data Type' as 'CSV' and 'Data Source' as 'Shared File.' Once 'Shared File' is selected, click on the 'Select Shared File' box to display the shared file created in Step 1.


https://lh7-rt.googleusercontent.com/docsz/AD_4nXef1RANSvW73eeIu7KO-Qb29np4ePjJFN69UC9lpjwpIKaYfpBFOaiWE-DG-Ucs29xnnVx4SgNJ6bioXEH1OMThm5pJGZJFwQVQDjVrj0deW8lNMa0kMXIR-shh6oNzD-fk-KPh?key=_rUX5Em7UEL73gX9z6WCeA


After selecting the shared file, you will see that the inputs urls will be displayed as below-


https://lh7-rt.googleusercontent.com/docsz/AD_4nXeBXrEm1vbde8On34-KnQzE1paH1PNsT-kp3Rt3VueSIPhhQwwDJQd7DBr56hXNGpgjihUFDYT5C1zUL506x_K6d_pCZHGBd61zUCYv5Vo5EPt1fwDQRdPyZhQRO-x47rnnvpaL?key=_rUX5Em7UEL73gX9z6WCeA

How to configure the URL command to load the URLs?


Step 7 : In the Browser group command, click on the 'URL' command and add it under the 'Data List' command.


https://lh7-rt.googleusercontent.com/docsz/AD_4nXfm4o9bmZIAl1wi30a4aR88V7y3i96mOpeJjTtAxWQ8HHjoHzOZxA4XDe5vA_e8l1yLiq9fMEK5NPXFVFvmB2qJQiRX_aXM1Rha-qI-GvkKtXtNXNKYI6m_-GLDI0qkvT31MgsxWvQSPmURJpxIpgBwGdU3?key=_rUX5Em7UEL73gX9z6WCeA


Step 8: After adding the 'URL' command, navigate to the 'URL' option and select 'Data List' from the ‘URL’ dropdown menu.

https://lh7-rt.googleusercontent.com/docsz/AD_4nXeQKPkZfYRYjwTZ8uE3X3McCN83wy2CSmKAxKD3RiKGDx0kjtz6iHDvXsmiGxUajfa-vOji2NQT6ienxvyDnbyojPYHCm6J28_cnXHfhNimQAh-idXiHcAnQ2ixlj4zbLPCHrNcWw?key=_rUX5Em7UEL73gX9z6WCeA

Note:

Additionally, you can generate the agent in text format by clicking on the 'Text' option in the right panel, as shown below.

This text format can be saved locally by clicking the option available at the bottom.

Agent:
	Proxies:
		Run Without Proxies: true
	Commands: Data List
		CSV:
			Source: Shared File
			Path: InputSharedFile.txt
		Commands: URL
			Input:
				Command: Data List
				Data Field:
			Commands: Content
				Name: City Detail
				Extract: //div[@class='mw-content-ltr mw-parser-output']/div[2]
	Export:
		Commands: CSV