Descripció
Centous AI Search with Askiva adds AI-powered search to your WordPress site. It indexes published posts and pages, then lets visitors search your content and receive streamed AI answers with matching results.
- Content indexing: batch sync of published posts and pages to Askiva
- AI search: semantic search with streamed AI answers (GFM Markdown)
- Rich results: list or grid layout, thumbnails, pagination, and “Read more” links
- Query help: “Did you mean” suggestions when the API detects typos
- Admin tools: connection settings, sync dashboard, statistics, and logs
The frontend search box uses AJAX by default: results and the AI answer load inline without a full page reload. Server-rendered results are still supported when a search URL contains a query parameter.
Full setup and usage guides: Centous AI Search with Askiva documentation.
External services
This plugin connects to third-party Askiva services. An Askiva account is required.
Askiva account portal
Website: https://askivasearch.com/
Used to register an account, add your WordPress site, and obtain your Site Identifier and API Key.
Askiva API
API Used to verify your connection, sync published WordPress content, run search queries, stream AI answers, and load dashboard statistics.
Data sent from your WordPress site to the API:
- On connect (Verify Key): Site Identifier and API Key
- On sync: published post/page title, URL, slug, excerpt, plain-text content, headings, categories, and tags
- On search: search query, Site Identifier, API Key, pagination, and optional content type filter
- On dashboard stats: Site Identifier and API Key
Data is sent only when you or a visitor triggers these actions (connect, sync, search, or when an administrator views the dashboard).
Requirements
- WordPress 5.8+
- PHP 7.4+
- Valid Askiva account (Site Identifier and API Key from the Askiva dashboard)
- Outbound HTTPS to the Askiva API host
- Published content to index (drafts are skipped)
Features
- Secure admin AJAX with nonces and
manage_optionschecks - Site ID + Site Key connection with verify endpoint
- Batch content sync with pause, resume, and restart
- Real-time sync status and error logging
- Streaming AI answers with GFM Markdown rendering
- “Did you mean” typo suggestions from the API
- List and grid result layouts with configurable thumbnails
- Search popup shortcode for header and navigation use
- Server-rendered and AJAX search modes
- Theme template overrides
- WordPress REST sync endpoints for automation
- Cached dashboard statistics
- First-run redirect to settings
- Clean uninstall support
Configuration
Create your Askiva account and site
- Register and log in at Askiva
- In the dashboard sidebar, click Sites
- On the Sites page, click Add Site
- In the popup, enter your website details and click Add Site
- Your site appears in the list: click it to open the site detail page
- On the detail page, copy your Site Identifier and API Key (you will enter these in the WordPress plugin)
Connect your site
- Open Centous Search Settings in WordPress admin
- Enter your Site ID (the Site Identifier from the Askiva portal, e.g.
my-site-aBc12XyZ) - Enter your Site Key (the API Key from the Askiva portal)
- Click Verify Key: the plugin calls
POST /wp/verifyto validate credentials - When connected, Site ID and Site Key fields are locked until you disconnect
Saved settings also include numeric api_site_id when the verify response returns one (used for search API compatibility).
Sync your content
After a successful connection:
- Go to Centous Search Sync
- Click Start Sync to index your published WordPress content to Askiva
- Wait for the sync to complete (monitor progress and logs on the Sync page)
When sync finishes, your site content is available for AI search.
Enable search on your site
Add the search shortcode to any page or post: [askiva_search]
Visitors can search your site and see streamed AI answers with semantic results. See Usage below for shortcode options and layout settings.
Search and display settings
Under Centous Search Settings:
- Content Items per Index Cycle: posts/pages sent per sync batch (default: 10)
- Results Display Mode:
listorgridfor search results (default: list) - Results per Page: results shown per page, 1–100 (default: 10)
- Thumbnail Size: result thumbnail size in px, 48–400 (default: 96)
Usage
Search shortcode
Place [askiva_search] on any page, post, or widget area. Visitors search inline; the AI answer streams in and results appear below the form.
Common setup:
- Create a page (for example
/search/) with[askiva_search show_results="1"] - For a header or sidebar button that redirects to your search page, use
[askiva_search_popup results_url="/search/" trigger_text="Search"] -
Optionally set a global results URL for the popup shortcode:
add_filter( ‘askiva_search_results_url’, function () {
return site_url( ‘/search/’ );
} );
Note: [askiva_search show_results="0"] hides pre-loaded results on page load, but search still runs inline on that page via JavaScript. Use the popup shortcode to redirect visitors to a separate search page.
Shortcode attributes
placeholder(string, default: Search…): input placeholderbutton_text(string, default: Search): button label (legacy)site_id(string, default: from settings): override site ID; saved settings always win when settype(string, default: empty): optional content type filter sent to the APIresults_url(string, default: auto): full URL or path for the search results pageresults_page_id(int, default: none): WordPress page ID for results (alternative toresults_url)show_results(auto,0, or1; default:auto):autoshows results when a query is present;1enables results;0hides pre-loaded resultsresults_limit(int, default: from settings): results per page (1–100)view_all_limit(int, default: 50): max results when “view all” is usedajax(0or1; default:0): force AJAX rendering (legacy widget behavior)live(bool, default: false): search while typing (debounced)min_chars(int, default: 2): minimum characters before search runsdebug(0or1; default:0): include API trace/debug datalimit(int, default: 10): legacy AJAX limit
URL query parameters
- Search query: default name
q(legacy aliasaskiva_qis still supported) - Page: default name
askiva_page(pagination) - View all: default name
view(useview=allfor the expanded result limit)
Popup search shortcode
Opens a modal search box and redirects to your results page on submit: [askiva_search_popup results_url="/search/" trigger_text="Search"]
trigger_text(default: Search): button that opens the popupplaceholder(default: Search…): input placeholderclose_text(default: Close): close button labelresults_url(default: auto): where to send the user after searchresults_page_id(default: none): page ID alternative toresults_urlmin_chars(default: 2): minimum query length
Support
Documentation: https://docs.centousplugins.com/centous-ai-search-with-askiva
Plugin support: Centous, developer of this plugin.
Askiva (third-party service): account setup at Askiva.
Captures





Instal·lació
- Upload the
centous-ai-search-with-askivafolder to/wp-content/plugins/ - Activate the plugin through Plugins in WordPress admin
- Register on Askiva, add your site, and copy your credentials (see Configuration)
- Go to Centous Search Settings in WordPress and connect your site
- Run an initial sync from Centous Search Sync
- Add the
[askiva_search]shortcode to a page or post
PMF
-
Does this work with all themes?
-
Yes. The plugin ships self-contained CSS. Themes with aggressive list resets are handled via scoped styles for AI answer lists.
-
Do I need an Askiva account?
-
Yes. This plugin uses Askiva as a third-party API service. Register at the Askiva dashboard, add your site, and copy the Site Identifier and API Key into the plugin settings.
-
Can I re-sync all content?
-
Yes. Use Start Sync with “Delete all data and start fresh sync” on the Sync page, or the restart REST endpoint.
-
Does search work without JavaScript?
-
Partially. With
show_results="1"and a query in the URL, PHP can render results server-side. The streaming AI answer requires JavaScript. -
Can I change the search URL parameter?
-
Yes. Use the
askiva_search_query_paramfilter (default:q).
Ressenyes
No hi ha ressenyes per a aquesta extensió.
Col·laboradors i desenvolupadors
«Centous AI Search with Askiva» és programari de codi obert. La següent gent ha col·laborat en aquesta extensió.
Col·laboradorsTraduïu «Centous AI Search with Askiva» a la vostra llengua.
Interessats en el desenvolupament?
Navegueu pel codi, baixeu-vos el repositori SVN, o subscriviu-vos al registre de desenvolupament per fisl de subscripció RSS.
Registre de canvis
1.0.0
- Initial release
- Connect with Site ID and Site Key, then sync published content
- Search shortcode with streamed AI answers and semantic results
- Popup shortcode, dashboard stats, and sync pause/resume/restart
