WASHINGTON — Technology companies are racing to get ahead of regulators to shape the future of artificial intelligence as it moves deeper into daily life

WASHINGTON — Technology companies are racing to get ahead of regulators to shape the future of artificial intelligence as it moves deeper into daily life.

Companies are already working AI into their business models, but the technology remains controversial. So International Business Machines Corp., Intel Corp. and associations representing Apple Inc., Facebook Inc. and Alphabet Inc.’s Google unit aim to set a code of conduct through alliances with futurists, civil-rights activists and social scientists.

Critics, however, see it as an effort to blunt outside regulation by cities, states or the federal government, and they question if tech companies are best suited to shape the rules of the road.