Being a good undercover officer takes a certain type of person. You must be an impeccable actor, a chameleon who can blend seamlessly into easily combustible situations, coolly stare your target in the eye and lie. You have to know the street lingo for drugs, like red top or blue top for different vials of cocaine.There's also—and this is the point of the piece—the temptation for corruption. Looking around for more info, I came across this website (which may look amateurish, but hey, it does cite scholarly sources...), which offers even more advice on getting started: "A typical pattern is to bring the undercover officer in as an acquaintance, business associate, or girlfriend/boyfriend of an informant, and then to distance themselves from that informant." All good advice, no doubt.
You have to look the part, wear the right clothes, and have a good back story. If you say you are a mechanic, you’d better know cars, because chances are that the dealer will too. Many undercover narcotics officers use props. They might push shopping carts filled with soda cans in plastic bags, aping a homeless person, and twitch like an addict.
They might bring along a basketball, saying they are coming back from the courts and itching to score on the way home. If they are buying crack, they have to produce a crack pipe, or “stem,” and it has to look used.
If the dealer insists that they test the goods before they buy, that they take a hit off a crack pipe or a snort of cocaine, undercover officers are supposed to resist unless the situation is dire, unless they have a gun to their heads. And if they are they are forced to take the drugs, they must report it to their unit, and undergo a medical evaluation. And if they are forced to ingest more than once, they will almost certainly be taken off of the streets.