WAOS.ai Logo

Integrate AI into Your Website in Minutes

Build and host AI-powered web apps fast with WAOS.ai.

Get Early Access

Seamlessly Embed AI into Your Website

Enable Two-Way Communication Between Your Site and AI Apps

WAOS.ai makes it easy to integrate AI apps into your website, enhancing functionality and user engagement. With simple embedding options, you can add AI-powered assistants, interactive elements, and more without disrupting your existing site structure.

Our secure message-passing system allows for two-way communication between your website and the embedded AI app. You have full control over what the AI can access and manipulate, ensuring your site's security while providing powerful new capabilities.

Embedding Example:

<!-- Embed your WAOS.ai App -->    
<iframe id="embedded-waos-app" allow="autoplay; picture-in-picture; speaker;" src="https://waos.ai/western_advanced"></iframe>

JavaScript Communication Example:

// SEND a message to be handled by the embedded WAOS app   
function postMessageToIframe(data) {
  const iframe = document.getElementById('embedded-waos-app');
  if (iframe && iframe.contentWindow) {
      iframe.contentWindow.postMessage({message: data, isFromWAOS: true}, 'https://waos.ai');
  }
}

//RECEIVE and handle a message from the embedded WAOS app
function getMessageFromIframe({ data, origin }) {
    console.log({ data, origin })
    if(typeof data == "object") {
        const { method, params } = data;
        if(method=="customMethodHere") {
            const { firstParam, anotherParam } = params
            // console.log({ firstParam, anotherParam })
        }  
    }
}