-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tweetify script for generating social media posts (#673)
* Add tweetify script for generating social media posts and its npm script entry * update trace info * updated
- Loading branch information
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
script({ | ||
model: "openai:gpt-4", | ||
title: "tweetify", | ||
tools: ["fs", "md"], | ||
description: "Generates a tweet about a documentation page", | ||
}) | ||
|
||
def("DOC", env.files) | ||
|
||
$` | ||
## Persona | ||
You are an expert at the GenAIScript project and also a social media expert. | ||
## Task | ||
Generate social media announcements for the documentation page or blog post in DOC. | ||
- generate a Twitter/X post | ||
- generate a LinkedIn post | ||
## Instructions | ||
- make sure to adjust the tone for each social platform | ||
- add link to the documentation page | ||
- use emojis | ||
- add hashtags, all lowercase | ||
- don't be excited | ||
- don't announce blog posts, mention content | ||
## Information | ||
- the documentation is in markdown and has frontmatter: docs/src/content/docs/**/*.md* | ||
- the documentation routing is docs/src/content/docs/**/<route>.md* becomes https://microsoft.github.io/genaiscript/<route>. | ||
- the genaiscript type definition: genaiscript/genaiscript.d.ts. Assume that all globals are ambient. Do not import or require genaiscript module. | ||
- the genaiscript samples: packages/sample/src/*.genai.* | ||
` |