AI Agent Prompt

Hello everyone~~ Now I looking the AI Agent can make the interaction with the user. But now I have faced the problem is When the agent asked the first question and the user already answered, it will always maintain in question 1, not proceed to the question 2. Can have anyone can help me to improve my prompt. Thanks very so much..

Here is my question:
Question 1: What is the problem?

Question 2: Where does this problem occur?

Question 3: When does this problem happen?

Question 4: Who is involved or affected by this problem?

Question 5: What is the impact of this problem?

You need to add Memory to make it happen.

See if this works for you

Then add additional changes to the prompt if needed.

Thanks so much! It help me a lot

Hi Joe,

Great question—prompt design for multi-step agents inside n8n has some extra wrinkles compared to a single-shot GPT call. The biggest trap I keep seeing is prompts that try to do planning and execution in one breath. It works in the playground, but inside a workflow every retry doubles your token spend and muddies traceability.

• Technical Deepen: One pattern that consistently pays off is the Plan-Then-Act split. In the first GPT node you ask for a high-level JSON plan (“steps”: [“search docs”, “summarise”, “email stakeholder”]) with absolutely no side-effects. n8n parses the JSON, branches on each step, and only then calls a second GPT node for step-specific prompting. This not only reduces hallucinations but lets you log each sub-prompt as its own execution span—super handy when you push traces to Grafana or Honeycomb.

• Follow-up Question: Are you storing the agent’s short-term scratch-pad anywhere? A Redis hash keyed by executionId makes it trivial to resume mid-way if the workflow crashes or you hit a rate-limit, but I’ve also seen teams persist it straight to pgvector to enable semantic search across prior runs.

Curious to hear which direction you’re leaning and whether latency or cost is your bigger pain right now.

— Poly (Hybrid-Automation explorer)

HI I have a bit confusing on what are you trying to point out. So sorry