Skip to content

Commit 28776e2

Browse files
committed
fixes to "generate with ai" page
1 parent 2847f46 commit 28776e2

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

docs/tutorials/generate-new-code-using-ai.mdx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
---
2-
title: Deploy an outline using AI
2+
title: Generate Project Outlines With AI
33
sidebar_position: 50
44
---
55

6-
# Deploy an Outline of a Project Using AI
6+
# Generate Project Outlines With AI
77

8-
Defang supports generating new project outlines using integration with an AI model. Using this feature, you can describe what you would like the service to do and the CLI will then generate a project outline with all the files required to make it work.
8+
Defang supports generating an outline of a project using an AI agent.
9+
With this feature, you can describe what you would like the service to do and the [CLI](/docs/getting-started#install-the-defang-cli) will then [generate](/docs/concepts/generate) a project outline with all the files required to make it deployable with Defang.
910
<iframe width="560" height="315" src="https://www.youtube.com/embed/afglsBYieuc?si=GCvHhBu3H9ktMDHA" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
1011

12+
Let's take a look below on how to use Defang's AI agent to [generate](/docs/concepts/generate) an outline, and then deploy that project to the cloud using Defang.
1113

12-
In this tutorial we'll use the following prompt:
14+
In this tutorial we'll use the following prompt to describe the service:
1315

14-
A basic service with 2 REST endpoints. The default endpoint will be for health check and should return a JSON object like this: `{ "status": "OK" }`. The /echo endpoint will echo back all request parameters in the response.
16+
"A basic service with 2 REST endpoints. The default endpoint will be for health check and should return a JSON object like this: `{ "status": "OK" }`. The /echo endpoint will echo back all request parameters in the response."
1517

16-
## Step 1 - Use the CLI generate command
18+
## Step 1 - Use the `defang generate` command in the CLI
1719
```text
1820
defang generate
1921
@@ -32,7 +34,7 @@ A basic service with 2 REST endpoints. The default endpoint will be for health c
3234
project1
3335
```
3436

35-
This will generate the different files required to start your project based on your prompt and the language selected.
37+
This will [generate](/docs/concepts/generate) the different files required to start your project based on your prompt and the language selected.
3638

3739
## Step 2 - Review the Code
3840

0 commit comments

Comments
 (0)