I need to Audit list of URL to identify different item they sell in there menu. Through uipath

Hi Team,
I want to audit list of URL, to identify different kind of item they are displayed in menu. ex-pizza, . condition is like:- if they sell more than 5-differnt kind of pizza then message should displayed “primarily pizza” . if they sell up to 5-type of pizza then message like to “some pizza”, .if they sell no pizza then message like to “No pizza”.
Question:-
1-how to handle with above scenarios?
2-How to put condition in “if Activity” to handle above 3-condition?
or any suggestions with example welcome.

Hie @sfdc_sfdc
The image shows a conditional logic flowchart with nested "if" statements, where  is compared to 5, leading to writing "primarily pizza" to the output if specific conditions are met. (Captioned by AI)

This image shows a conditional logic flow where an "if" statement checks if "intNum" equals 0; if true, it writes "Some pizza," and if false, it writes "No Pizza." (Captioned by AI)

use two if condition to check first for upto 5 and second for upto 5 and if 0 then no pizza
cheers

@sfdc_sfdc you can use switch case also for that
The image shows an example of a UIpath workflow where an "Input Dialog" activity collects a numerical user input "intNum" and a "Switch" activity processes the input with conditional expressions and directs different cases to "Write Line" actions. (Captioned by AI)
cheers

Hi Sumit,
Which activity I can use for to displayed web URL?

Hi @sfdc_sfdc

you can try using Else if activity


Hie @sfdc_sfdc if you want to display the output you can use message box ,write line , log message and to open browser you can use open browser activity
cheers Happy Automation

Hi Sumit,
please let me know how do you declared variable for those operator.

you can create variable through variable panel using shortcutkeys like ctrl+k command using property pannel…

  • Declare a Variable:
  • Go to the “Variables” panel.
  • Click the “+” button.
  • Set the Name to filePath.
  • Set the Type to String.
  • Optionally, set the Default Value to "C:\example\file.txt".
  • Use the Variable:
  • Drag an activity, such as “Assign”, into your workflow.
  • In the “Assign” activity, set the To field to filePath and the Value field to the desired file path or another string.

CHEERS

Hi Sumit Thanks for your support,

Pizza count ex-12345… is not mention in the web URL menu section. then query is :-How to Automate that these many number of pizza count are there in the menu. only screenshot & name of pizza are displayed.

@sfdc_sfdc its quite confusing to understand like 12345 you have to check available or not in the menu is that the thing you want to check ?
and share some screenshot of your process where you get stuck …
cheers

Hi Sumit,
Am not allowed to upload screenshot, pls provide mob no if possible so that I can share screenshot.
This is how list of pizza displayed in the menu, here need to identify condition is like:- if they sell more than 5-differnt kind of pizza then message should displayed “primarily pizza” . if they sell up to 5-type of pizza then message like to “some pizza”, .if they sell no pizza then message like to “No pizza”.
Note:-every time a new web URL pass in to loop, then condition should like that , it will count list of pizza from menu on the basic of there image/name/screenshot . then it will displayed message in above condition.
Question:-
1-how to handle with above scenarios?
2-How to put condition in “if Activity” to handle above 3-condition?

@sfdc_sfdc Aas per my understanding you have the url so make a Arrayofstring variable and in the value filed pass the url so that way it run one by one …then inside that you can use if or switch case to verify the count is more that 5 below 5 or 0
i already send you the screenshot to check for condition in my previous reply…

Hi Sumit,
Thanks for your replay
Query is :- How to count list of pizza from menu? if there are no number like12345… is mention in the pizza . only to identify list of pizza from there image/name.

@sfdc_sfdc

1. Extract Pizza Names from Text

If the menu is in a text format (e.g., PDF, Word, or a webpage), follow these steps:

a. Read the Text

  • Use Read PDF Text, Read Text File, or Get Text activity to extract text from the menu.

b. Split and Process Text

  • Use activities like Assign to split the text into lines or sections based on delimiters (e.g., new lines, commas).
  • Use string manipulation functions (e.g., Split, Trim) to clean and format the data.

c. Count Unique Pizza Names

  • Use List operations to store pizza names.
  • Use Count method or similar activities to get the total number of unique pizza names.

2. Extract Pizza Names from Images

If the menu is in image format and the names are not directly readable, use Optical Character Recognition (OCR):

a. Use OCR Activities

  • Use the Read PDF with OCR or OCR activities (e.g., Google OCR, Microsoft OCR) to extract text from images.

b. Process Extracted Text

  • Follow the same steps as above to split, clean, and count the pizza names.

3. Count Images of Pizzas

If the pizzas are represented by images:

a. Use Image Processing

  • Utilize the Image Classification or Find Image activities to recognize and categorize each pizza image.

b. Count Recognized Images

  • Keep track of the number of unique images recognized. You might need to configure image recognition to ensure different pizzas are correctly identified.

Example Workflow for Counting Pizza Names from Text

  1. Read the Menu:
  • Read PDF Text or Get Text to capture the menu.
  1. Extract Pizza Names:
  • Assign activity to split the text.
  • Use string manipulation to clean up and isolate pizza names.
  1. Store Pizza Names:
  • Use a List or DataTable to store the extracted names.
  1. Count Unique Pizza Names:
  • Use Count method on the list or DataTable.