Spotlight: Social Media Automation with Gravity Connect OpenAI
Ever wish social media posts could write (and schedule) themselves? See how Dominik Hurcks made it happen using Gravity Forms and Gravity Connect.
Dominik Hurcks of PluginPilot is a true WordPress wizard, crafting clever tools at the intersection of AI, automation, and WordPress.
When he’s not conjuring code, he’s running a Paraguay-based natural goods store with his girlfriend. If you’re a solo builder, you might relate: Dominik’s store makes use of regular social media marketing to stay on top, but Dominik found himself wrestling with the time-consuming aspect of writing up posts about products. Never-ending clever captions can feel like quite the chore. 😆
As luck would have it, Gravity Connect crossed Dominik’s path, sparking a delightful dose of mischief. With Gravity Forms and Gravity Connect, Dominik hatched a cunning plan: automate social media posting entirely. The result: time saved and sanity intact. Here’s how he pulled it off.
Generating social posts using the OpenAI connection 🪄
Dominik’s natural goods shop is frequently restocking with fresh finds. When he’s ready to spread the good word on his social media channels, he fires up a custom-built Gravity Form. This form serves as his secret sauce for inputting key details about the product he’s about to post.
One of the most time-consuming parts about social media marketing can be coming up with descriptions. So, Dominik said nay. Using the OpenAI connection, he automates the description based on the fields in his form. He uses fields like Product Name, Price, Size, an Image field, and any other information he wants to include to inform the OpenAI prompt.
The OpenAI Stream field is used in combination with the Stream to Paragraph Field snippet (via Code Chest), allowing him to see the generated text by clicking Generate within the form. From here, he can make a few tweaks to the generated text directly on the form as needed and send it off.
Code Chest is a secret weapon for adding and organizing form-specific styles and scripts for simple, portable Gravity Forms customizations.
Dominik was kind enough to provide a full video overview of his setup. Watch it below.
Here’s the prompt Dominik uses in the setup above, but translated to English (please let us know if you want this same prompt auf Deutsch).
Note how this prompt utilizes the fields within the form:
Create a Telegram message in German and Spanish.
Use the following information:
Product: {Product Name}
Price: {Price in Guarani}
Package Size: {Package Size / Unit}
Origin: {Origin (if available)}
If no origin is provided, leave this information out of the message.
Additional Information: {Additional Information}
Requirements:
Use colorful symbols (e.g., 🥜, 🌟, 💰) for sections.
Write the message with clear paragraph structure and spacing.
Include both the German and Spanish texts.
Describe the product's benefits in lively, cheerful, and informative language.
Use the following structure for clarity and readability:
Message Structure:
Introduction:
A lively and inviting greeting that highlights the product. Use symbols to make the product appealing.
Benefits of the Product:
Describe its advantages in engaging language, e.g.:
Health: What health benefits does it offer?
Usage Options: How can the product be used (e.g., as a snack, in dishes)?
Detailed Product Information:
Package Size: {Package Size / Unit}
Price: {Price in Guarani}
If applicable: Origin: {Origin}
Conclusion:
Invite readers to purchase or indicate where the product is available. Provide the link to Todo Delicioso: https://maps.app.goo.gl/e4ULRrfM7abV4LMi6. Use symbols and hashtags like:
#NaturalProducts
#HealthyEating
Example:
🥜 Sweet and Delicious – Our Pecan Nuts! 🥜
Pecans are not just irresistibly tasty but also powerful sources of valuable nutrients.
They are rich in heart-healthy unsaturated fats, antioxidants, and essential minerals like magnesium and zinc.
Why choose pecans?
Health: Support heart and body with essential nutrients.
Versatility: Perfect as a snack, in baked goods, or as a topping for salads!
💼 Package Size: 500g
💰 Price: 50,000 Gs
✨ Available at Todo Delicioso Caazapá ✨
#NaturalProducts #Pecans #HealthyEating
The great thing about Gravity Connect is that posts are created directly within the form, ensuring nothing goes wrong, and the post can still be edited before submission.
Automating post creation with Airtable and Make.com
Okay, so, Dominik has the details in place and a solid social media description generated. Now, by submitting his form, he sends this soon-to-be-post to Airtable (via a webhook), where it’s stored and can be reused as needed.
Airtable also includes a calendar that triggers automated, scheduled posting. When the planned publish date is hit, an Airtable automation passes it off to Make.com — which then sends the post — image, text, and all — directly to Domink’s Telegram group.
Dominik’s system isn’t locked to Telegram either. The same logic allows for scheduling posts to any other platform, including Instagram, Facebook, or X.
Oh look — Dominik’s post made it!
Respect for what you are putting together. What I like most about Gravity Forms and [Gravity] Wiz is the clean programming. The code is really well tested, there are no errors.
Interested in building something like this yourself? Let us know in the comments, or reach out to Dominik directly!