I am not sure that i have understood ; there must be a character in the story who is a robot with an AI ?
Some examples to give you an idea:
This AI character can be a love interest, a friend, etc. What matters is that this character is relevant to the plot of the story. Or maybe the protagonist could be an AI and have human friends, or they could be artificial intelligences. It’s up to the developer to decide what to do, they have total creative freedom.