WebSim.ai Advanced Guide

1. Generated Backend

Generated Backends allow users to call on a simulated database in their websims. To use, type '/api/backendhere'. For example, for my Underground Martian Expedition I used '/api/martianplants'. When the user asks for a plant, it gives back a generated plant and its information from a simulated database.

2. Real Backend

WebSim allows users to call on functioning real world APIs. In this example, I asked my websim to use Leaflet's open source mapping software, along with OpenMeteo. I didn't even provide it a link, but it was able to properly find what it needed. The result was a worldwide map that could be clicked in any location in order to see its current weather.

3. HTMX Streaming

Using HTMX can allow your websim to process information without reloading the page. In my Underground Martian Expedition, I used HTMX so the user would be able to search plants without waiting for a full page loading sequence.

You can also use HTMX for live chatting with various LLM personas - a great example is Rudy's Boom Boom Room - Lightning Round by Jazmaan/OneMeatball.

In order to implement HTMX, simply tell your websim you would like to use HTMX. You can specify when, and where to implement, but it is generally not required.

4. Plugins

Plugins are a way you can add a functioning tool or site on top of another. By taking the string after /c/, or the full string after websim.ai/ for bookmarked links, you can add "?plugin=xyz" to any URL and combine your websims.

One important thing to note is that unlike context management, plugins do not get combined into your generation. They are designed to function on top of something, rather than as a part of it. A good example is found INPUTLINKHERE

Tip: Experiment with different plugin combinations to enhance your WebSim projects and create unique experiences.

5. Context Management

WebSim.ai provides powerful context management tools to help you maintain consistency across your simulated web universe.

Example: Use context variables to maintain user state across multiple pages in your WebSim project.
Note: Proper context management is crucial for creating cohesive, multi-page experiences.

6. !Continue

The !Continue feature allows you to expand and elaborate on your WebSim.ai creations, providing a way to generate additional content or functionality.

Example: Use !Continue to generate more articles for a blog or additional levels for a game.
Tip: Experiment with different prompts and instructions to guide the continuation process.