🔬 Generate and host SubmitRax chat-built forms with Claude and GitHub Pages

⚡ 1 views · 🔬 Document Extraction & Analysis

💡 Pro Tip — If you need GitHub data beyond what the REST API gives you, ScraperNode has a repository scraper that extracts metadata at scale without token rate limits.

View All Scrapers

Description

Quick overview

This workflow lets you generate SubmitRax form HTML via an Anthropic Claude agent (using the SubmitRax MCP server) and then publish the form as an HTML file to a GitHub Pages repository, returning a comment, form key, and hosted URL.

How it works

  1. Chat with an AI form builder: the n8n Chat Trigger takes a plain-language request such as “create a contact form with name, email and message”. You don’t need to write any HTML or code.
  2. Generate the form with Claude AI and MCP: an Anthropic Claude Sonnet AI agent calls the SubmitRax MCP server to create a live form endpoint. It returns structured output with a short comment, a unique form key and ready-to-embed HTML form code.
  3. Check for an existing form page: the GitHub node looks for forms/.html in your GitHub Pages repository to decide whether to create a new page or update the existing one.
  4. Publish the HTML form to GitHub Pages: the workflow commits the generated HTML file, which gives you free static site form hosting with every change versioned in Git.
  5. Get the live form URL back in chat: the reply includes the agent’s summary, the form key and the public GitHub Pages URL. SubmitRax, a form backend for static sites and JAMstack apps, collects every submission and can route it to email, Slack, Discord or webhooks with no backend code.

Setup

  1. Create a SubmitRax (Here) API token and add it to an n8n HTTP Bearer Auth credential used by the SubmitRax MCP Tool.
  2. Add an Anthropic API credential for the Claude Sonnet chat model.
  3. Create a public GitHub repository with GitHub Pages enabled (deploying from the branch used by the workflow, default main) and ensure a forms/ folder path is acceptable for your Pages configuration.
  4. Create a GitHub Personal Access Token (or fine-grained token) with access to the target repository and connect it to the GitHub nodes.
  5. Update the GitHub username and repository name in the GitHub Hosting Config step so the workflow publishes to the correct repo and builds the correct hosted URL.

Requirements

Customization

🔗 Nodes Used

GitHub, AI Agent, Anthropic Chat Model, Simple Memory, Structured Output Parser, Chat Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup