Integrations
WordPress Integration
Import your WordPress posts and pages into Reaktly.
Overview
Connect your WordPress site to automatically import blog posts, pages, and custom post types into your Reaktly knowledge base.
Setup Options
Option 1: WordPress Plugin (Recommended)
Install the Reaktly WordPress plugin for automatic synchronization.
Option 2: REST API Script
Use the WordPress REST API to push content manually:
import requests
import hashlib
WP_URL = "https://your-site.com/wp-json/wp/v2"
REAKTLY_API = "https://api.reaktly.com"
API_KEY = "your-api-key"
def sync_posts():
posts = requests.get(f"{WP_URL}/posts?per_page=100").json()
items = [{
"integrationId": "wp-integration-id",
"knowledgeBaseId": "your-kb-id",
"sourceType": "ARTICLE",
"externalId": f"wp-post-{post['id']}",
"data": {
"title": post["title"]["rendered"],
"content": post["content"]["rendered"],
"url": post["link"],
"hash": hashlib.sha256(post["modified"].encode()).hexdigest()
}
} for post in posts]
requests.post(
f"{REAKTLY_API}/ingest/bulk",
json={"items": items},
headers={"x-api-key": API_KEY, "Content-Type": "application/json"}
)