Skip to content

Commit f5ebc8b

Browse files
committed
Add prompts examples and tool gif.
1 parent 5481e4f commit f5ebc8b

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

docs/assets/calculate_total.gif

48.9 MB
Loading

docs/prompts-cookbook.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Prompts cookbook
2+
3+
## Content creation
4+
5+
```
6+
wp ai "Create 10 posts about Pokemon, each post describing a generation 1 pokemon, with the title being the name of the pokemon and the category Pokemon"
7+
```
8+
9+
```
10+
wp ai "Get the last 5 posts and summarize them in 1 summary - then create a post with the title 'Summary of my last 5 posts' with that summary as content"
11+
```

docs/tools.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,13 @@
77
- `generate_image` - Uses AI to generate an image.
88
- `fetch_wp_community_events` - Fetches WordPress community events based on location.
99

10+
### Calculate total
11+
12+
Example:
13+
14+
```
15+
wp ai "Calculate total for 5 tickets per 300$ each."
16+
```
17+
![calculate_total](./assets/calculate_total.gif)
18+
1019
## REST Controllers

0 commit comments

Comments
 (0)