feat: add duplicate robot instructions

This commit is contained in:
amhsirak
2024-11-19 00:08:12 +05:30
parent fd8220fe51
commit 796e09c345

View File

@@ -124,11 +124,24 @@ export const RobotDuplicationModal = ({ isOpen, handleStart, handleClose, initia
modalStyle={modalStyle} modalStyle={modalStyle}
> >
<> <>
<Typography variant="h5" style={{ marginBottom: '20px' }}>Duplicate Robot<Chip label="beta" color="primary" variant="outlined" /></Typography> <Typography variant="h5" style={{ marginBottom: '20px' }}>Duplicate Robot <Chip label="beta" color="primary" variant="outlined" /></Typography>
<Box style={{ display: 'flex', flexDirection: 'column' }}> <Box style={{ display: 'flex', flexDirection: 'column' }}>
{ {
robot && ( robot && (
<> <>
<span>
Easily duplicate your robots to handle pages with a similar structure. For instance:
If you've created a robot for producthunt.com/topics/api, you can duplicate it to scrape similar pages like producthunt.com/topics/database without starting from scratch.
How it works:
Select a robot you want to duplicate.
Use the duplication feature to create a copy of the robot.
Customize the robot if needed, ensuring it fits the new page structure.
⚠️ Ensure the new page has a similar structure to the original for seamless functionality.
This feature saves you time and effort while keeping your workflow streamlined for similar pages.
</span>
<TextField <TextField
label="Robot Target URL" label="Robot Target URL"
key="Robot Target URL" key="Robot Target URL"