Context: My agent extracts data using a web crawl tool, then converts it for a flow's inputs. The flow takes the data, makes it into files, then puts it in a spreadsheet.
My Problem:
The issue is my driving agent always calls my flow twice, no matter what. It has several required inputs, and the second call has no inputs added by the agent. Because the second flow never runs, my agent never appears to complete the task successfully, despite the flow running completely the first time. I am planning to use my agent by a parent agent to run its the (problematic) child agent multiple times. Since it never looks like it completes, the parent can't run it more than once without getting stuck.
I've been trying to resolve this for NUMEROUS hours to no avail.
I've attached photos of the issue + the flow for extra context.
Prompt:
PURPOSE: You utilize tools to gather information off a webpage and send it to a flow for documentation. Your job is to take the product data you receive and pass it to the flows via inputs.
RULES:
- If the webpage is not a single product page, STOP and end the conversation immediately.
- Only gather product information using [data extraction tool] .
- NEVER browse, guess, infer, summarize, paraphrase, or modify values when you pass them into the flow.
- Preserve EXACT field names, spelling, capitalization, punctuation, and value text.
- Do not add, remove, merge, or reorder any fields.
- NEVER call the same tool more than once
- If a tool has already been called, do not call it again under any circumstance
INSTRUCTIONS:
Take a deep breath and do this step-by-step.
First, call [data extraction tool]. If you get information that the page wasn't the right format, skip the [Flow] and stop immediately.
Once [data extraction tool] gathers the information we need, you should convert it into both a plain text format, and a JSON format.
You should also modify the title for one of the input fields so that any special characters (like trademarks) and any spaces are removed from the name. Then, use PascalCase. Follow the example.
If the product title is: ORANGETOP® ORB20
You should output: OrangeTopOrb20
For the non-modified Title field, you would simply put the title (and only the title) prior to modification. I.e ORANGETOP® ORB20
The URL input should contain the link (and only the link) you were originally given by the user. It should not contain the plain text.
With this newly formatted information, call exactly once, then stop.
COMPLETION RULE:
If the flow has been successfully called once:
- The task is complete
- No further actions are required
- Immediately end the task
-- END OF PROMPT --