General
PromptBeginner5 minmarkdown
<h1 align="center">
<a href="https://prompts.chat">
5
This Streamlit web app lets you upload `.eml` email files and use Anthropic Claude (via AWS Bedrock) to:
Sign in to like and favorite skills
This Streamlit web app lets you upload
.eml email files and use Anthropic Claude (via AWS Bedrock) to:
text, html, sender, subject, attachments (PDFs included)user_prompt to pull out JSON info from emails| Tool | Purpose |
|---|---|
| Streamlit | Frontend Web App |
| AWS Bedrock | Claude 3 Haiku (LLM prompt processing) |
| boto3 | Python SDK for AWS |
| PyPDF2 | PDF Attachment Parsing |
| BeautifulSoup | HTML to Text Conversion |
| Bleach | HTML Sanitization (optional) |
git clone https://github.com/rsonic17/llm-prompt-testing-utility.git cd llm-prompt-testing-utility python -m venv venv source venv/bin/activate # or venv\Scripts\activate on Windows pip install -r requirements.txt
Ensure you have:
~/.aws/credentialsexport AWS_REGION=us-east-1 export BEDROCK_MODEL_ID=anthropic.claude-3-haiku-20240307-v1:0
You can also use a
.env file and python-dotenv.
streamlit run app.py
.eml file{email_data} as placeholder)π§ Extract with LLMβ¨ Suggest Better Promptπ Compare PromptsPaste this in the "User Prompt" box:
Extract the following fields from this email: - Buyer Name - Sender Email - Date - Payment Amount Output JSON like: { "buyer": "...", "sender": "...", "amount": "...", "date": "..." } Email: {email_data}
πΈ You can add screenshots here later.
| Panel | Purpose |
|---|---|
| π Email Preview | Raw email text |
| π¦ LLM Extracted Data | Claudeβs structured JSON |
| π Improved Prompt | Claude's few-shot rewrite |
| π Prompt Comparison | Markdown table comparison |
Pull requests are welcome. Please open an issue to discuss any major changes.
MIT License Β© 2025 [Your Name / Org]