Free Consultations
Available 24/7
Law books, a gavel, and a legal pad on a wooden desk in a courtroom setting.

Online Sex Crimes Defense | Frisco, Texas

When an Undercover Operation Goes Too Far: Entrapment Under Texas Law

By Heather Barbieri · Published October 25, 2026

Short Answer: Entrapment Is a Defense Under Texas Law

Texas gives people a defense when police push them into a crime they would not otherwise commit. The rule is in Texas Penal Code § 8.06. It is a defense to prosecution if a law enforcement agent induced you to commit the offense using persuasion or other means likely to cause persons to commit it. Simply giving you a chance to offend is not enough.

If you are reading this after an arrest or an unexpected police contact, the questions probably feel urgent. That reaction makes sense. This page answers one question: what are the legal protections for entrapment in Texas? This page offers general information about the entrapment defense and how it may apply to online stings.

Every case turns on its own facts. The information below is general, so use it to understand the framework, not to predict how your own matter will end.

If a chat or police contact you didn't expect has you searching for answers, you don't have to sort it out alone. Our team can talk through your case details with you. Talk it through with our team — the first consultation is free, confidential, and carries no obligation.

A handcuffed person in an orange jumpsuit is escorted by a police officer down a corridor.

The Definition of Entrapment in the Texas Penal Code

Subsection (a) says the defense applies when you engaged in the charged conduct because a law enforcement agent induced you to do it. The inducement must use “persuasion or other means likely to cause persons to commit the offense.”

Subsection (a) also says that “conduct merely affording a person an opportunity to commit an offense does not constitute entrapment.” That sentence matters most. An officer who simply makes a chance available has not, by that fact alone, entrapped anyone.

Subsection (b) defines “law enforcement agent” broadly. It includes state and local officers, United States personnel, and “any person acting in accordance with instructions from such agents.” A civilian working under police direction falls within that definition too.

In plain words, the key terms work like this:

  • Law enforcement agent: an officer or other personnel of state, local, or United States law enforcement agencies, or any person acting in accordance with instructions from such agents.
  • Persuasion or other means: urging, pressure, flattery, offers, repeated requests, or other tactics.
  • Likely to cause persons to commit the offense: the statute asks whether the tactics were the kind that could push people into the crime.

Where the Line Falls: Persuasion Versus Opportunity

The line falls between tactics that create a crime and a chance that a person simply takes. Opportunity is not inducement. Inducement is when the officer’s conduct pushes the person toward the offense.

Take a simple example. An officer posts a decoy ad, and a person replies. The reply alone does not answer the legal question. The reviewer needs to know what happened next.

Several questions matter in a review:

  • Who first raised the subject of the offense?
  • How many times did the officer repeat or escalate a request?
  • Did the officer use pressure, flattery, or offers of something of value?
  • Did the officer keep pushing after the person hesitated?

The statute focuses on what the persuasion was likely to cause. That means the officer’s conduct and its effect on the person are both part of the picture. A reviewer looks at the whole exchange, not a single message.

How Entrapment Arises in Online and Undercover Stings

Online stings use undercover chat personas, decoy profiles, and sometimes staged meetings. The inducement-versus-opportunity question still controls.

Online cases add a layer that often gets less attention. Texas also has a separate online solicitation statute. Texas law makes it a crime for a person who is 17 or older, with intent to commit a listed sex offense, to intentionally communicate in a sexually explicit manner with an individual whom the actor believes to be younger than 17 years of age, over the Internet, by electronic mail or text message, or through a commercial online service.

Section 8.06 turns on whether a law enforcement agent induced the conduct; the rule for a person the actor believes to be a minor is in § 33.021. Under § 33.021(a)(1)(B), “minor” includes an individual “whom the actor believes to be younger than 17 years of age.” In a sting, the officer’s stated age is central to how the charge is framed.

Section 33.021 also limits what a defense can do. Under subsection (d), it is not a defense to a solicitation charge under subsection (c) that the meeting did not occur. Subsection (e) lists two narrow defenses, one of which is that the actor was married to the minor. Entrapment under § 8.06 is a separate question from these limits.

Penalties depend on the subsection charged. Under subsection (f), an offense under subsection (c) is a second-degree felony. The Texas Attorney General’s cyber safety resources describe Texas information on online solicitation of minors.

How the Defense Is Raised and Who Must Prove What

Entrapment is raised as part of the defense in a criminal case. The timing and form of how it is raised are decisions made with the lawyer, based on the record.

Because the defense depends on the conduct of the officer, the evidence about that conduct often becomes the center of the case. Messages, timing, and the officer’s reports can all matter. A lawyer uses that record to decide how the defense fits with the other issues in the case.

Entrapment is one issue among several that can arise in a case. Other questions may involve the charge, the evidence of intent, or procedure. No lawyer can predict or ensure how a court or jury will rule, so any review should stay focused on what the record shows.

Evidence Reviewed When Building an Entrapment Defense

A review starts with the full record of contact between the officer and the person. Partial screenshots rarely tell the whole story. The reviewer needs the sequence.

Records commonly reviewed include:

  • Complete message logs from every platform used
  • Timestamps that show when each message was sent and answered
  • Screenshots and any recordings
  • Police reports and supplemental reports
  • Ad postings, profile details, or operational information if available

Context matters as much as content. Reviewers look at who made the first contact, whether the tone or requests changed over time, and whether the person had any earlier contact with the officer. A pause in the conversation or a sudden shift in topic can matter.

This is what a defense lawyer reviews to evaluate the defense. It is not a promise about what the review will show. Some records help a defense, some do not, and the lawyer explains both.

Not sure what your next step is?

Talk it through with our team — the first consultation is free, confidential, and carries no obligation.

Related Issues That Can Arise in These Cases

Each issue has its own elements and its own questions, so they should be reviewed separately from entrapment.

Those federal rules can apply alongside Texas law when online images or files are involved.

If your situation involves an online conversation, the broader picture is covered in our guide on online sex crimes defense in Texas. Reviewing the full set of issues early helps you understand which questions matter most in your case.

About Barbieri Law Firm and Next Steps

Barbieri Law Firm is an all-women criminal defense firm based in Frisco, Texas. The firm defends people accused of sex crimes and assaultive offenses in Collin County, across Dallas-Fort Worth, and throughout Texas. Heather Jean Barbieri, Board Certified, Criminal Law — Texas Board of Legal Specialization, leads the firm, and our team supports each matter.

If you are trying to understand a chat thread or a police contact you did not expect, you don’t have to work through it alone. You can reach our team to talk through the details of your situation. The first consultation is free, confidential, and carries no obligation to continue. Call (972) 424-1902 or send us your case details.

Attorney responsible for this site: Heather Barbieri, Barbieri Law Firm, Frisco, Texas.

A uniformed police officer stands outside a barred cell where a prisoner sits inside.

Frequently Asked Questions

What is entrapment under Texas law?

Entrapment is a defense under Texas Penal Code § 8.06. It applies when a law enforcement agent, or someone working with an agent, persuades or otherwise induces a person to commit an offense that the person would not otherwise have committed.

Does a police sting or undercover operation automatically count as entrapment?

No. Under Texas law, merely giving a person an offer or an opportunity to commit an offense is not inducement, so a sting that only provides the chance to act does not by itself establish entrapment. Whether the defense applies depends on the specific facts, including what the officer said and did.

How can entrapment come up in an online sex crime case?

In online stings, the defense may be raised when an undercover officer or cooperating person pressures or persuades someone into sexual communications or arrangements they did not initiate. The recorded messages, timing, and who first raised the subject are often central to whether the defense is supported.

What should I do if I think I was entrapped?

Avoid discussing the case with police or prosecutors until you have spoken with a criminal defense lawyer. Barbieri Law Firm offers a free, confidential initial consultation with no obligation to continue, where a lawyer can review the messages, recordings, and other evidence with you. No lawyer can ensure any particular outcome.

Barbieri Law Firm, 17 Cowboys Way, Suite 175, Frisco, TX 75034. The information you obtain at this site is not, nor is it intended to be, legal advice. You should consult an attorney for advice regarding your individual situation. Contacting us does not create an attorney-client relationship. Results listed are not a guarantee or indication of future case results.

How We Review an Entrapment Question

Every Message and Recording

We review the full chat logs, call recordings, images and timestamps, including who first raised the subject and how the conversation changed over time.

The Agent's Conduct

We examine what the law enforcement agent or cooperating person said, suggested or pressed, and whether those means were likely to cause someone to commit the offense.

The Opportunity Versus the Inducement

Giving someone an opportunity to commit an offense is not the same as persuading them to do it. We separate the two on the facts of your case.

A Clear Explanation of Your Options

We explain how the evidence bears on entrapment and on the other defenses that may apply, so you can make informed decisions about your case.

Important: Entrapment Is Decided on the Facts

Entrapment is a fact-driven defense. The details of the contact, the messages and the operation can change the analysis.

Questions We Ask in Every Sting Case

Who started the conversation?

We look at whether the reader of the advertisement, the account or the chat initiated the contact, or whether the agent did.

What pressure was applied?

Repeated requests, flattery, false urgency or offers designed to overcome hesitation are part of what we examine.

Did the agent change the story?

We compare the agent's early messages with later ones to see whether the operation moved beyond providing an opportunity.

How does this fit your charge?

Entrapment is one part of a broader defense. We review how it relates to the specific charge, the evidence and the other issues in your case.

Related practice areas

  • Online Sex Crimes Defense Lawyer | Collin County & Texas
  • IP Address Evidence in Texas Online Sex Crime Cases
  • Online Sex Crime Charge Background Check in Texas

Request a Consultation

Fill out the short form and we will take it from there.

Call Now — Free Consultation (972) 424-1902