Wp gravity connect
Skill kylebrodeur/wordpress-agent-kit/skills/wp-gravity-connect
WordPress-focused AGENTS.md + Agent Skills starter kit for AI coding agents.
npx -y skills add kylebrodeur/wordpress-agent-kit --skill wp-gravity-connectAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when integrating Gravity Forms with OpenAI via Gravity Connect: configuring OpenAI Fields (real-time pre-submission AI) or OpenAI Feeds (async post-submission processing), setting token ceilings, routing through OpenRouter, using GPT Image generation, voice-to-text transcription, or building AI-powered form workflows.
The file declares its own license as GPL-2.0-or-later. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
5.9 KB, as published. Nobody here has run it
Gravity Connect — OpenAI Integration
Gravity Connect (OpenAI Connection) integrates Gravity Forms directly with OpenAI for AI text generation, image creation, voice transcription, and automated entry processing. Part of the Gravity Wiz ecosystem, installed via Spellbook.
When to use
- Setting up AI text generation inside a form (before submission)
- Configuring post-submission AI processing (email drafting, classification, tagging)
- Building AI-powered form moderation
- Generating images with GPT Image from form data
- Voice-to-text transcription in forms
- Routing prompts through OpenRouter for model hot-swapping
- Setting token limits to control API costs
Official documentation
| Resource | URL |
|---|---|
| Gravity Connect docs | https://gravitywiz.com/documentation/gravity-connect/ |
| OpenAI Connection docs | https://gravitywiz.com/documentation/gravity-connect-openai/ |
| Fields reference | https://gravitywiz.com/documentation/gravity-connect-openai/#fields |
| Feeds reference | https://gravitywiz.com/documentation/gravity-connect-openai/#feeds |
| GPT Image guide | https://gravitywiz.com/how-to-generate-ai-images-in-gravity-forms/ |
| AI text generation | https://gravitywiz.com/generate-text-gravity-forms-openai/ |
| AI moderation | https://gravitywiz.com/gravity-forms-moderation-gc-openai/ |
| Social media automation | https://gravitywiz.com/spotlight-social-media-gravity-forms-openai/ |
| Installation (via Spellbook) | https://gravitywiz.com/documentation/spellbook/ |
| Account dashboard | https://account.gravitywiz.com/ |
| Support | https://gravitywiz.com/support/ |
GitHub
- Legacy open-source reference: https://github.com/gravitywiz/gravityforms-openai
Fields vs Feeds — choose the right integration point
| OpenAI Fields | OpenAI Feeds | |
|---|---|---|
| Trigger | Before submission (real-time) | After submission (async) |
| User waits? | Yes — keep prompts fast | No — background processing |
| Use for | Live translation, grammar check, real-time summary, image preview | Email drafts, DB tagging, routing, moderation, classification |
| Token budget | Small (user is waiting) | Larger acceptable |
Rule: Default to Feeds unless the use case requires real-time display before the user submits.
Procedure
1) Install via Spellbook
Gravity Connect is not a standalone plugin — it installs through Spellbook (the Gravity Wiz platform):
- Install and activate Spellbook from your account dashboard: https://gravitywiz.com/download/spellbook
- In wp-admin: Spellbook → Connect → OpenAI Connection → Install
- Or activate from your account: https://account.gravitywiz.com/
# After downloading Spellbook zip
wp plugin install spellbook.zip --activate
# Then install OpenAI Connection from the Spellbook UI in wp-admin
2) Connect your OpenAI account
- Create an API key: https://platform.openai.com/api-keys
- In wp-admin: OpenAI Connection → Settings → Secret Key → paste key
- Important: Store in
wp-config.phpconstant, not the settings UI:
// wp-config.php
define('OPENAI_API_KEY', getenv('OPENAI_API_KEY'));
3) Configure OpenAI Fields (real-time)
- Form editor → Advanced Fields → OpenAI field
- Set Endpoint (Text, Image, Audio)
- Write Prompt using Gravity Forms merge tags:
{field_label:1},{all_fields} - Set Maximum Tokens — always required
4) Configure OpenAI Feeds (post-submission)
- Form → Settings → OpenAI
- Add New Feed
- Choose model (e.g.,
gpt-4o-minifor cost efficiency) - Write prompt with merge tags
- Set Maximum Tokens (required — see token ceilings below)
- Map the AI response to a field or send via notification merge tag
5) Token ceilings — always set
Every feed and field must have Maximum Tokens set to prevent runaway costs.
| Task | Recommended max tokens |
|---|---|
| Categorization / routing | 50–100 |
| Email subject line | 50–75 |
| Email body draft | 200–400 |
| Summary | 150–250 |
| Grammar / rewrite | 100–200 |
| Moderation decision | 50–100 |
| Image prompt → image | 256 (tokens don't apply to image size) |
6) OpenRouter — hot-swap models without code changes
Route through OpenRouter to use cheaper open-source models:
OpenAI Connection → Settings → Custom Base URL:
https://openrouter.ai/api/v1
Model examples:
meta-llama/llama-3-8b-instruct (cheap, fast)
anthropic/claude-3-haiku (quality, affordable)
mistralai/mistral-7b-instruct (open source)
Use cheaper models for tagging/categorization feeds; expensive models only when quality matters.
7) GPT Image generation
Field type: OpenAI → Image. Add to form for pre-submission image preview or post-submission image storage.
Prompt: "Professional headshot of {Name:1}, corporate style, white background"
Size: 1024x1024
Store URL in: Image Field 5
Security and cost controls
// wp-config.php — credentials in constants, not wp_options
define('OPENAI_API_KEY', getenv('OPENAI_API_KEY'));
// Set spending limits in OpenAI Platform dashboard:
// https://platform.openai.com/account/limits
Set alerts in your OpenAI project dashboard for unexpected spend spikes.
References
wp-gravity-formsskill — forms and entries setupwp-gravity-wizskill — Spellbook installation- OpenAI Platform: https://platform.openai.com/
- OpenRouter: https://openrouter.ai/