Skip to content

Instantly share code, notes, and snippets.

@elisalimli
Last active April 20, 2024 16:23
Show Gist options
  • Save elisalimli/ba454baab551619d8a63966ca11b065c to your computer and use it in GitHub Desktop.
Save elisalimli/ba454baab551619d8a63966ca11b065c to your computer and use it in GitHub Desktop.
SAML - Amazon Data Extractor
# Try out now at https://beta.superagent.sh/workflows
workflows:
- superagent:
llm: gpt-4-turbo-preview
name: JSON Schema generator
prompt: |-
Convert natural language query to JSON schema
Examples:
Question: List all the products launching at https://www.producthunt.com/ today
Answer: {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"upvote_count": {
"type": "integer"
}
},
"required": ["title", "description"],
"additionalProperties": false
}
}
- superagent:
llm: gpt-4-turbo-preview
name: Structured Output Agent
intro: 👋 Hi there! How can I help search for answers on the internet.
tools:
- scraper:
name: Web browser
use_for: use for searching internet
metadata:
apiKey: YOUR_API_KEY
prompt: Using the given schema return JSON data as the answer. You can use "web-browser" tool to fetch data from internet.
@elisalimli
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment