How to Copy the SeaText AI Integration Code for WordPress
Copying the SeaText AI integration code for WordPress starts in your SeaText account. Open the General Integration page, copy the JavaScript snippet exactly as written, then paste it into your WordPress site's header. You...
How to copy the SeaText AI integration code for WordPress
The SeaText AI integration code for WordPress comes from your SeaText account, not from WordPress itself. Log in to your SeaText account and open the General Integration page. Find the section that says "Copy the JavaScript code provided by SEATEXT AI" and select the full snippet. Copy it without changing any characters. Then paste it into your WordPress header using the WP Engine custom JavaScript plugin (if you host on WP Engine), a header-scripts plugin such as Insert Headers and Footers, or your theme's header.php file. Save the change, then visit or refresh your site several times and stay for at least 40 seconds. Wait at least five minutes, then check the General Integration page for your website name next to the SEATEXT logo.
Why the code must go in the WordPress header
SeaText's AI agents need to run on every page your visitors see. The fastest way to do that is a site-wide header script. When you paste the code into a page or post body, it only loads on that one page. That is not enough. The official SeaText instructions say to add custom JavaScript code and apply it across all your pages.
WordPress gives you three practical paths to the site-wide header:
- WP Engine's plugin for custom JavaScript, when your site is hosted on WP Engine.
- A header-scripts plugin, such as Insert Headers and Footers, which adds a field for code that loads in the wp_head hook.
- Your theme's header.php file, ideally through a child theme, by pasting the snippet just before the closing
</head>tag.
All three methods achieve the same result. Pick the one you can maintain confidently.
What you need before you copy the code
The official instructions are clear: "Before you can install the script, you need a SEATEXT AI account." Create one first if you do not have it. You also need a real domain. Development URLs such as localhost are restricted for security reasons. Dynamic development domains may not work, because SeaText might not be able to reliably link traffic to your account.
If you plan to add the code to more than one domain, note that each SEATEXT AI account is linked to a single primary URL. You must create a separate account for each domain or website.
Step-by-step: copy the SeaText code and add it to WordPress
- Log in to your SEATEXT AI account.
- Open the General Integration page.
- Locate the section labeled "Copy the JavaScript code provided by SEATEXT AI".
- Select the whole JavaScript snippet and copy it. Do not modify it.
- Go to your WordPress admin dashboard.
- Choose one of the three insertion methods described below.
- Paste the code into the site-wide header field or the header.php file.
- Save the change.
- Visit or refresh your website several times. Stay on a page for at least 40 seconds so the AI can activate and link to your account.
- Wait at least five minutes. Open SeaText's General Integration page and look for your website name next to the SEATEXT logo.
Method 1: Use the WP Engine plugin
SeaText calls out WP Engine specifically: "If you are using WPEngine please download the WP Engine plugin that enables you to add custom JavaScript code to your pages. Install it and apply it across all pages." After installation, open the plugin settings, create a new header script, paste the SeaText code, and apply it across all pages.
Method 2: Use a header-scripts plugin
A plugin like Insert Headers and Footers is the safest option for non-technical users. Install the plugin, open its settings, paste the SeaText code into the header field, and save. The plugin places the code into the wp_head hook, so it loads on every page.
Method 3: Edit header.php directly
If you prefer to manage code yourself, open your theme's header.php and paste the snippet just before the closing </head> tag. Use a child theme. Otherwise, a theme update can silently remove your integration.
If you use a page builder like Elementor or Beaver Builder, you still need a site-wide insertion method. Page builders do not replace the theme header. Use one of the three methods above.
How to verify the code is installed correctly
SeaText gives you a clear signal that the connection is ready. On the General Integration page, "Wait at least five minutes until you see your website name displayed next to the SEATEXT logo at the top of this page."
You can also check your site's source code. Open your website in a browser, right-click and select "View Page Source", then search for "seatext". You should see the snippet in the head section.
If the website name does not appear after 10 minutes, SeaText's instructions say to contact support. This could indicate an issue during installation on your platform, and you may need their assistance.
Common mistakes to avoid
- Pasting the code into a page or post body. The script must load site-wide from the header.
- Using localhost or a dynamic development domain. SeaText restricts these for security and reliability.
- Using one SeaText account on multiple domains. Each account is linked to a single primary URL.
- Forgetting the activation visit. You must visit or refresh your website several times and stay for at least 40 seconds.
- Checking too early. Wait at least five minutes to see your website name on the SeaText page.
- Editing the main theme without a child theme, which can lose the code during updates.
- Applying the WP Engine plugin to only the homepage. Apply it across all pages.
Why the SeaText code stays inert until you activate it
SeaText's official instructions say: "The installation process is secure, and the AI remains inert until activated, ensuring the integrity of your website's content." That has a practical meaning. Pasting the code alone does not change your site. The code simply connects your domain to SeaText. After the connection appears, you must go to the Main AI Hub to activate the agents you need. You can also open the AI configuration to adjust parameters. Optional editing lets you review, create, or manually edit translations for your variants.
In short, copy the code carefully, place it in the header, confirm the connection, then activate the agents.
Limitations and restrictions to know before you install
- One SeaText account works with one primary URL. Create a separate account for each website.
- Localhost is blocked. Use a valid, real domain.
- Dynamic development domains may not function, because SeaText might not be able to reliably associate traffic with your account.
- The activation step is mandatory. The script does not become active just because it is pasted.
- The code must be applied across all pages for the AI to work the way SeaText describes.
Frequently asked questions
Where exactly do I find the SeaText integration code?
In your SeaText account, open the General Integration page. The code is in the section titled "Copy the JavaScript code provided by SEATEXT AI".
Can I paste the code into a WordPress page or post?
No. The code needs to load site-wide in the header. Use a header-scripts plugin, the WP Engine plugin, or your theme's header.php.
What if my WordPress site uses WP Engine?
Follow SeaText's advice: download the WP Engine plugin that enables you to add custom JavaScript code to your pages, install it, and apply the code across all pages.
Why doesn't my site appear after I paste the code?
You probably have not completed the activation visit or waited five minutes. Visit your site several times, stay for at least 40 seconds, then wait. If it still does not appear after 10 minutes, contact SeaText support.
Can I use one SeaText account on two WordPress sites?
No. Each SEATEXT AI account is linked to a single primary URL. Create a separate account for each website.
Further reading and comparison sources
These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.
Learn more
Visit the website for more information.