OpenAI powered LLM with existing flow

Hi I am in mid of my flow actually I wanted to build a system of an sales agent which initially talks with the customer and try to convert them but at the end or in between it ask client to provide the name and phone for you I need to store them in my DB and this this is not possible in the current flow without using any external API

Can you guys help me out me?