This recipe demonstrates how to leverage Airtop’s SDK to autonomously search social media posts and automate a reply. We can achieve all that by using just the following API’s:
A live demo of this recipe is available here. You can sign up to create an API key for free and try it out yourself!
To get started, ensure you have:
If you want to use the same parameters as in the example. You can run the script using the default values:

The application will require you to enter a few parameters to accomplish the task.
Here the agent is prompted to verify if the user is signed in or not.
After the agent has validated that the user is signed in, it will proceed with finding the posts based on the query and the matchPrompt.
The agent will generate a reply based on replyPrompt provided at the beginning. It will generate a reply
only for the first matched post just to keep this recipe simple, however, this behavior could be easily adjusted
to cover all the extracted posts.