Div-idy logo

How to Use AI Input and Output in a Web Page

Div-idy makes AI-powered web pages simple. You don’t need to wire inputs, APIs, or outputs. Just describe what you want users to enter and what the AI should return—Div-idy handles the rest.

Updated Time: ~2–3 minutes Audience: Beginners
Open My Projects Create a Web App Browse all docs

Quick Answer

To use AI input and output in a web page, just describe the experience you want to build. Div-idy automatically creates the input fields, sends the data to the AI, and displays the output in the UI.

Example

“Create a page where users enter a business idea and the AI returns a startup name, tagline, and short description.”

Step-by-Step

1

Open or create a project

Go to your dashboard and open a project.

Open: /myaccount
Click a project → open the editor.
2

Describe the AI input

Tell Div-idy what users should type into the page.

Prompt example:
Create a text input where users describe their travel destination,
budget, and number of days.
3

Describe the AI output

Explain what the AI should generate in response.

Continue prompt:
The AI should return a daily travel itinerary with activities,
food suggestions, and a short summary.
4

Generate

Click Generate. Div-idy wires up the AI logic and UI automatically.

Click: Generate
Result: AI-powered page with input + output.
5

Iterate with prompts

Refine the experience by prompting UI or output changes.

Follow-up examples:
- Add a loading state while the AI is generating.
- Format the output as cards instead of paragraphs.
- Add a “Copy to clipboard” button for results.
- Limit responses to 300 words.

Prompt Examples You Can Copy

A

AI idea generator

User enters an idea, AI expands it.

Create a page where users enter a business idea.
The AI should generate a name, elevator pitch, and target audience.
B

AI text rewriter

User enters text, AI rewrites it.

Create a page where users paste text.
The AI should rewrite it to sound more professional and concise.
C

AI comparison tool

Structured output based on user input.

Create a page where users enter two products.
The AI should return a comparison table with pros, cons, and a recommendation.