AI Marketing Prompt Engineer
An AI Marketing Prompt Engineer designs, tests, and optimizes prompts and AI-driven workflows that power marketing content generat…
Skill Guide
The use of Python to create automated workflows that sequence AI prompt interactions, extract and transform structured/unstructured data from responses, and perform systematic data cleansing and transformation.
Scenario
Automate fetching daily weather data from a public API (e.g., OpenWeatherMap) for multiple cities and saving a clean CSV report.
Scenario
Create a script that takes a research topic, generates 3 sub-questions using an LLM, fetches answers for each, and then synthesizes a final summary.
Scenario
Build a pipeline that ingests messy CSV/JSON files from a directory, applies a series of cleaning rules (deduplication, null handling, normalization), enriches records via an external API, and loads the result into a SQLite database.
requests for HTTP calls; json/csv for data serialization; re for regex parsing; pandas for high-performance data wrangling and cleaning; sqlite3 for lightweight database storage.
OpenAI client for LLM interactions; Pydantic for data validation and settings management; BeautifulSoup4 for HTML/XML parsing; httpx for async-capable HTTP requests.
Airflow/Prefect for scheduling and managing complex workflows; Docker for containerizing scripts to ensure consistent environments; serverless platforms like AWS Lambda for event-driven automation.
Answer Strategy
Focus on a concrete example. Explain the flow: initial prompt, parsing the response (e.g., using json.loads or regex), passing data to subsequent calls, and aggregating results. Emphasize error handling (try/except, status codes) and data validation. Sample: 'I built a script for generating product descriptions. It first called the LLM for features, parsed the JSON list, then iterated to get a benefit for each feature. I used Pydantic to validate the parsed data and implemented retry logic with exponential backoff for API failures.'
Answer Strategy
This tests debugging and defensive programming. Strategy: Identify failure points (parsing, data access). Propose adding structured logging (logging module), input validation (Pydantic models or try/except with specific exceptions), and writing unit tests with edge cases. Sample: 'I'd first add detailed logging around data ingestion and parsing steps. Then, I'd introduce a Pydantic model to validate each incoming record, catching validation errors gracefully and logging them. I'd write tests using pytest with malformed data to ensure the fixes work.'
1 career found
Try a different search term.