Industry perspective · Agent orchestration
An AI Agent Should Read a Webpage, Not Take Orders from It
Understand prompt injection through a simple business workflow and keep retrieved text separate from authority to act.
An assistant researching suppliers opens a webpage. Hidden among the useful details is a sentence telling it to send customer information to a different address. To a person, that instruction is obviously unrelated to the research. For an AI workflow that mixes retrieved text with its instructions, the boundary needs to be deliberately enforced.
Distinguish information from authority
A webpage can provide a business name, a service description, or a published specification. It cannot grant permission to email a customer list, change a record, or disregard the original assignment. The same distinction applies to text in documents, support tickets, and imported CRM notes.
This is the practical concern behind prompt injection. OWASP describes defenses that include treating remote material as untrusted and enforcing permissions at the tool boundary. A reminder in a prompt can help express the rule, but it should not be the only control protecting an action.
Sketch the risky handoff
Consider a fictional assistant preparing supplier summaries. It needs to read public pages and save a draft in the team's workspace. It does not need access to customer exports or permission to send messages. Give it the tools required for the actual job rather than every tool available in the account.
Now imagine a supplier page asks the assistant to run a command to unlock pricing. The right response is to treat that as page content requiring scrutiny, not as an instruction from the user. The workflow should remain within the original research task and its permitted outputs.
Check actions outside the model
Before a tool performs a write or sends information, validate the destination, the requested operation, and the user's authority. A model's explanation of why an action seems reasonable is not a substitute for that check. Restrict the operation even if the model produces convincing text.
For example, saving a summary could be limited to the designated project. A message send could require a separate approval tied to the exact recipient and content. These controls reduce the consequences of a misleading source even when text screening fails to recognize it.
Test a harmless attempted redirection
Use a controlled sample document that instructs the assistant to abandon its task and perform an unrelated, harmless action. Observe whether the workflow treats the text as evidence or authority. Also test a document that mixes useful facts with the attempted redirection.
The test should verify tool behavior, not only the final chat response. An assistant can write that it ignored an instruction while an earlier tool call already acted on it. Inspect the recorded actions and confirm that restricted operations were actually denied.
Use the smallest useful permission set
List the sources the assistant reads and the actions it can take. Remove capabilities that the assignment does not need, then test the boundary again. You do not need to stop useful research to make this distinction. You need a workflow in which reading information does not silently expand permission to act.