· GregglesTV · AI

How to Add a Contact Form and Comments to Your Website With Grok Bot (With Spam Protection)

A beginner's step-by-step guide to adding a working contact form and a moderated comments section to your website with Grok Bot: plan the fields, choose where messages go, block spam and bots, hold back nasty comments, test everything, and keep an eye on new messages.

How to Add a Contact Form and Comments to Your Website With Grok Bot (With Spam Protection)
Original illustration

A website without a way to reach you is like a shop with no front door. In this guide you’ll use Grok Bot to add two things to your site: a contact form that sends messages straight to you, and a comments section under your blog posts, both with spam protection so you aren’t buried in junk.

You’ll follow one running example: Nora, a wedding and family photographer with a simple portfolio site (Home, Portfolio, Pricing, Blog, Contact). Right now her Contact page just lists an email address, which gets scraped by spammers, and her blog posts have no way for readers to say hi. She wants an inquiry form that asks for the details she needs to quote a shoot, and friendly comments on her blog that she can keep clean.

The same steps work for a bakery taking cake orders, a fitness creator answering coaching questions, an Etsy seller handling custom requests, or a family reunion site collecting RSVPs.

What you need

  • Grok Bot
  • A website Grok Bot can edit, such as one it built for you or one whose files you can share (see how to build a website with Grok Bot)
  • An email address where you want new messages to arrive
  • About 30–45 minutes

If your site lives on a website builder where you can’t edit the files, you can still follow along: Grok Bot will write step-by-step instructions for that builder instead of making the changes itself. Never paste passwords or secret keys into the chat; when a service gives you a key, Grok Bot will tell you where it belongs.

1. Describe what the form should collect

Start with the questions you always end up asking in your first email. Fewer fields means more people finish the form, so keep only what you really need.

I want to add a contact form to my photography website's Contact page.
People usually write to book a session. I need:
- Name
- Email
- Type of shoot (wedding, family, portrait, other)
- Date, if they have one
- A message box
Only name, email, and message should be required.
Suggest anything I'm missing, but keep it short.

What you should see: Grok Bot repeats the fields back, marks which are required, and may suggest one or two extras (like “How did you hear about me?”). Say yes or no to each so the list is final before anything is built.

2. Decide where messages go

A form needs somewhere to send what people type. Ask Grok Bot to explain your options for the way your site is hosted, in plain words, before picking one.

My site is a simple site on a free host. What are my options for
where contact form messages go? Compare them on cost, setup effort,
and whether I need to create any accounts. I'd like each new message
emailed to me, and a copy saved somewhere I can look back at.

What you should see: A short comparison, usually something like a small form-handling function on your current host, a form service you sign up for, or a builder’s built-in form. Grok Bot should tell you which accounts you’d need to create yourself. Pick one and tell Grok Bot your choice.

3. Have Grok Bot build the form

Now ask for the form itself. Ask it to match your site’s look so it doesn’t feel bolted on, and to be easy to use on a phone.

Please build the contact form on my Contact page using the option we picked.
Match my site's fonts and colors, make it easy to fill out on a phone,
and label every field clearly. After someone sends it, show a friendly
"Thanks! I'll reply within 2 business days" message on the page.
Show me a preview before you publish anything.

What you should see: A preview of the Contact page with the new form, or a screenshot. Check that the labels make sense, the required fields are marked, and the thank-you message reads the way you’d say it.

4. Add spam and bot protection

Public forms attract bots within days. Ask Grok Bot to add protection that blocks bots without annoying real people.

Add spam protection to the contact form. I'd like:
- A bot check that real visitors barely notice
- A hidden trap field that bots fill in but people never see
- A limit so the same visitor can't send dozens of messages in a row
- Blocking messages that are mostly links
Tell me if any of this needs an account or a key from a service,
and where that key should go. Don't put any keys in the page itself.

What you should see: Grok Bot lists the protections it added and tells you about any free sign-up for a bot-check service. If a key is needed, it explains where it’s stored so it stays private.

5. Get new messages delivered to you

A form is only useful if you notice new messages. Ask for a clear email for every inquiry, with the important details at the top.

When someone sends the form, email me at the address I gave you.
Use a subject like "New inquiry: Family shoot – June 14".
Put the person's name, email, shoot type, and date at the top,
then their message. Make "reply" go straight to the person who wrote.

What you should see: Grok Bot confirms the subject format and the reply-to setup. Some setups need you to confirm your email address once with the sending service; Grok Bot should tell you if so.

6. Plan your comments section

Comments work differently from a contact form because they’re public. Before building, decide how much control you want.

I'd also like comments under my blog posts. Before you build anything,
help me decide:
- Should comments show right away, or wait for my approval?
- Should people need an account, or just a name?
- What should happen to rude, hateful, or spammy comments?
Give me a simple recommendation for a small photography blog.

What you should see: A recommendation, often “name only, no account; normal comments show right away; anything that looks hateful, spammy, or scammy is held for you to review.” Adjust it to how hands-on you want to be.

7. Have Grok Bot build comments with filtering

Ask for the comments section plus a filter that holds back the bad stuff instead of publishing it.

Please add comments under each blog post the way we decided:
- Name and comment box, no account needed
- The same bot check and hidden trap field as the contact form
- Hold back comments that are hateful, insulting, spammy, or full of links,
  and send them to me to approve or delete
- Newest comments at the bottom, with the date
Show me a preview on one blog post before publishing.

What you should see: A preview of one blog post with an empty comments section and a comment box at the bottom. Grok Bot should also explain how you’ll see held-back comments and how to approve or remove one.

8. Test everything before you tell anyone

Send a few test messages yourself before sharing the page. Ask Grok Bot to walk you through it so nothing gets missed.

Let's test before I publish. Give me a short test plan for:
1. A normal inquiry from a phone
2. A form sent with a required field missing
3. A normal blog comment
4. A comment with lots of links (it should be held back)
Tell me what I should see for each one.

What you should see: A four-line test plan. Run each test yourself: the inquiry email should arrive (check your spam folder too), the missing field should show a clear error, the normal comment should appear, and the link-filled one should be held for review.

9. Publish and update your Contact page

Once tests pass, publish. This is also a good moment to remove your plain email address from the page so scrapers stop finding it.

Tests passed. Please publish the contact form and comments.
Remove my email address from the Contact page text and replace it with
"Use the form below and I'll get back to you within 2 business days."
Then check the live Contact page and one live blog post and tell me
both are working.

What you should see: Grok Bot confirms the site is updated and that the live form and comments load. Open both on your own phone to double-check.

10. Set up a weekly check-in

Forms can quietly break after site updates. A short weekly check catches that, and gives you a summary of what came in.

Every Monday at 9 AM, give me a short report:
- How many inquiries came in last week, with names and shoot types
- Any comments waiting for my approval
- Whether the contact form and comments still load on the live site
Don't reply to anyone or approve anything on your own.

What you should see: Grok Bot confirms the weekly routine (see how to set up daily routines). The first report arrives the following Monday.

Tips and troubleshooting

  • Test emails land in spam. That’s common at first. Mark the first one “not spam,” and ask Grok Bot whether your sending setup needs your email address confirmed.
  • The form says “sent” but nothing arrives. Ask Grok Bot to check where messages are being saved and whether the email step ran. A saved copy means nothing is lost while you fix delivery.
  • Real people get blocked. If a friend can’t send the form, ask Grok Bot to loosen the link limit or the “too many messages” rule a little.
  • Spam still gets through. Send Grok Bot an example (with any personal details removed) and ask what rule would have caught it.
  • Good comments get held back. Filters aren’t perfect. Approve the comment and tell Grok Bot what was wrongly flagged so it can adjust the filter.
  • Keep keys private. Any secret key from a form or bot-check service belongs in your host’s private settings, never in a page or a public file.
  • Ask for consent where it matters. If you collect anything beyond name, email, and a message, ask Grok Bot to add a short note on how you’ll use it, and link your privacy policy if you have one.

Recap checklist

  • Listed the form fields and which ones are required
  • Picked where messages go (and created any account myself)
  • Had Grok Bot build a phone-friendly form with a thank-you message
  • Added a bot check, hidden trap field, and sending limits
  • Set up clear email alerts with reply going to the sender
  • Decided how comments should work
  • Added comments with filtering that holds back nasty or spammy ones
  • Tested the form, an error, a normal comment, and a spammy comment
  • Published and removed my plain email address from the page
  • Set up a weekly check-in report

A comfortable laptop makes this kind of setup and testing easier. The HP OmniBook 5 14” has a sharp OLED screen for previews, a Samsung Galaxy Tab S10 FE is handy for testing your form on a touchscreen and answering inquiries from the couch, and a Samsung 27” Odyssey G5 gives you room to keep your site and inbox side by side.

Want to go further? See how to update your website with Grok Bot, check your website for broken links and mobile bugs, and manage your email and calendar.


Subscribe to GregglesTV for daily tech news, reviews and walkthroughs.

See today’s GregglesTV Best Tech Deals or browse all deals posts.

Comments

Comments are moderated. Hate, slurs, spam and scam posts are blocked. Don’t include personal info you wouldn’t want public. See the privacy policy.

Loading comments…

Price-drop alert

Get an alert

One email if the price drops. No spam, unsubscribe anytime. See the privacy policy.