Retrieving data from CRM contact fields for OpenAI content

I want to automate social media posts and need the following:

Trigger - Schedule for every day
Action 1 - Retrieve custom field data from Leadconnector / HL contact profile. This data is already stored, ready for retrieval.
Action 2 - Use the dynamic custom field data from Action 1 to feed OpenAI in order to write relevant, topical posts.
Action 3 - Post to whatever social media channel.

How do I do Action 1 - retrieving data from my CRM daily so that OpenAI can write relevant social media posts?