Hi everyone — I’ve built a Pickaxe tool that reformats and saves some text from user input using a Python action. The workflow is:
- User pastes a plain-text
- GPT formats it into Markdown
- The formatted brief is saved to memory using a custom action
- A success message (“
Success! Your Business Brief has been saved.”) is display
Everything works on the first run. The problem is what happens after that:
The tool automatically re-triggers with a "."
or blank input (possibly from system continuation or post-save step).
So the GPT responds with a message like:
“Since you provided “.”, and following the instructions…”
This causes an unnecessary second response and breaks the clean UX
What I’ve tried:
- Added strict prompt rules: "If input is ‘.’, blank, or <10 characters, return nothing at all.
- Repeated this silence rule at the top and bottom of the prompt
- Updated my action code to skip invalid input:
I suspect the issue may be:
- GPT getting re-triggered automatically by Pickaxe with a
"."
placeholder - Or the action firing again with invalid filler after completion
Any idea why this is happening? If so, how do I prevent GPT from re-running on "."
, empty, or post-save input? Or how do I stop the action or assistant from re-firing when there’s no meaningful user input?
Any help or best practices would be hugely appreciated!
Thanks!