Build and Share an App for a ServiceBeta
Give people a simple web page for a service without writing code. Describe the app to the AI assistant, preview it next to the chat, and publish a link your team opens after signing in. Use it to let colleagues try a service without access to the platform editor.
About This Task
The App channel lets a service have one app. An app is a single HTML file. Each time you save, the file replaces the previous one, so there are no versions and the change is live as soon as it's saved.
When someone opens the published link, the app runs in a sandboxed frame:
- Scripts can run, but the app can't make network calls or submit forms. This means the app can't call its service yet.
- The app can load scripts and styles only from a short list of allowed CDNs.
- The app can't access the platform page around it.
You can publish an app while the service isn't deployed, because the app is static HTML.
Prerequisites
- A service. For details, see Create a Service.
- Read and write permissions to services. For details, see User Roles and Permissions.
- The App channel turned on for your organization.
Build and Save an App
- In Haystack Enterprise Platform, click Gateway in the navigation and open the service.
- Click Connect.
- In the Channels section, in the App row, open the app editor.
- In the AI assistant, describe the app you want, for example a form that helps people phrase a question for the service. The assistant sees the current app HTML, so you can ask it to change what's already there.
- Check the result in the preview. When an answer contains an HTML block, the last one replaces the app and is saved right away.
- Keep refining with the assistant until the app does what you want.
The app is limited to 2 MB. A larger file isn't saved.
Publish the App as a Link
Publish when you want others to open the app without access to the platform editor.
- In the app editor, click Publish.
- Copy the link and send it to your team. To check it, open the link in a private window and sign in with SSO: the app should load.
People who open the link must sign in with single sign-on (SSO) first. The link is a shared prototype link, so it follows the same expiry and revocation rules as other service links. After you save a new version of the app, the same link shows the new version.
To manage or revoke the link, see Share a Service.
Troubleshooting
- The app doesn't load external scripts or styles. The sandbox allows only a short list of CDNs. Ask the assistant to use inline code or a library from a common CDN.
- The app's network requests fail. Apps can't make network calls. Build the app without live data.
- The app can't be saved. Check that you have write permission for services and that the file is under 2 MB. If the file is too large, ask the assistant to remove embedded images or simplify the app.
- A colleague can't open the link. They must sign in with SSO. An expired or revoked link no longer works.
What To Do Next
- Connect to a Published Service to call the service from your own code.
- Connect a Service to Slack to make the service available in Slack.
- Gateway to learn how services work.
Was this page helpful?