By Medha Singh

(Reuters) -Retail investors are piling into small-cap firms that are into building artificial intelligence tools amid intensifying competition between Google-parent Alphabet and Microsoft to secure leadership in the next big driver of growth.

The viral success of ChatGPT has turned the spotlight on AI on Wall Street, reminiscent of the blockchain hype from a few years ago when shares of companies remotely associated with the technology surged.

The $3-billion AI software firm C3.ai was the fifth most actively traded on Fidelity’s platform for small investors on Monday, while drawing record daily retail inflows worth $31.4 million, as per Vanda Research. The stock slipped 4.5% on Tuesday, but is up about 140% so far this year.

“Small-cap firms have AI as a much larger part of their business than the larger ones,” said Matthew Tuttle, chief executive officer of Tuttle Capital Management on the reason behind retail investors’ focus on the smaller firms.

Tuttle said he had shorted C3.ai shares about a week ago, but was looking to switch to the long side because “that’s where the action is.”

Shares of SoundHound AI, which offers voice AI platform services, and Thailand’s security firm Guardforce AI have more than doubled so far this year, while analytics firm BigBear.ai has gained nine-fold in value.

SoundHound AI was last down about 1% and BigBear.ai fell 9%, while Guardforce AI added 7%.

Shares of Microsoft, which backs ChatGPT parent OpenAI, gained about 2% ahead of a potential AI launch later in the day.

Alphabet said on Monday it would launch a chatbot service Bard and more artificial intelligence for its search engine as well as developers.

Microsoft is in a strong position in the AI race due to the combination of its close partnership with OpenAI and its Azure capabilities around compute and data, said Barclays analyst Raimo Lenschow.

“If you’re investing in AI, you should consider the fact that these smaller companies are competing against Goliath, and Goliath has the scale, efficiency and capital to own the space,” eToro analyst Callie Cox said, adding there has been a lot of interest around AI lately.

U.S.-listed shares of Baidu Inc climbed nearly 15% on Tuesday after the Chinese search engine said it would complete internal testing of a ChatGPT-style project called “Ernie Bot” in March. Earlier in the day, a clutch of Chinese AI stocks had also rallied.

“The market is right now trying to search for what would the next big thing that’s going to lead markets over the next 10 years and AI is that,” said Chen Zhao, chief global strategist at Alpine Macro.

“It could be speculative in nature, but everybody thinks that it’s going to be a big deal going forward.”

(Reporting by Medha Singh in Bengaluru; additional reporting by Bansari Mayur Kamdar and Akash Sriram in Bengaluru, Editing by Sriraj Kalluvila and Anil D’Silva)