Build a Blog Writing Crew with CrewAI¶
| Category | Content Creation |
| Status | โ Completed |
| Repo | nextwork-build-a-blog-writing-crew-with-crewai |
| Original NextWork guide | nextwork.ai |
Learning project
Practice work following a NextWork guide, separate from my production projects.
๐ NextWork learning project. This is a practice project I built while working through NextWork's Build a Blog Writing Crew with CrewAI guide. It is part of my Learning portfolio and is fully separate from my production projects.
Category: Learning โบ Content Creation
Status: โ
Completed
Overview¶
Four agents work in sequence: one gathers points, one drafts, one edits and one writes social posts. Their roles live in agents.yaml and their jobs in tasks.yaml, and crew.py (my own wiring, without CrewAI's project decorators) reads both, chains each task to the previous one's output, and runs them on a small local Ollama model.
Summary¶
Four agents (gather points โ draft โ edit โ social posts, the last one being the secret mission) ran end to end on a local model through my own crew wiring and wrote output/blog_post.md and output/social_posts.md.
The checks behind this are in docs/verification.txt.
Skills & tools¶
CrewAI, Multi-agent systems, YAML configuration, Ollama, Python
What I built¶
src/blog_crew/config/agents.yaml: the four roles.src/blog_crew/config/tasks.yaml: four jobs in my own words; two write output files.src/blog_crew/crew.py: builds the agents and tasks from the YAML and chains them (my code).main.py: the entry point.output/blog_post.md,output/social_posts.md: what the crew produced in the verification run (unedited).
How to run¶
ollama pull qwen2.5:1.5b
pip install crewai
PYTHONPATH=src python -m blog_crew.main "Running AI models locally with Ollama"
# or: crewai install && crewai run
Verification¶
I ran the verification command on 2026-12-03. The full output is in docs/verification.txt.
rm -rf output && PYTHONPATH=src CREWAI_TRACING_ENABLED=false OTEL_SDK_DISABLED=true timeout 3600 /workspace/nextwork-portfolio/.venv/bin/python -m blog_crew.main 'Running AI models locally with Ollama' > /tmp/crew-run.log 2>&1; rc=$?; tail -40 /tmp/crew-run.log; test $rc = 0 && test -s output/blog_post.md && test -s output/social_posts.md && head -30 output/blog_post.md && echo && cat output/social_posts.md
Notes¶
Rewritten on 3 Dec 2026: the crew wiring no longer follows the CrewAI template, and the task text is mine. Output quality reflects a 1.5B-parameter local model.
Original project: https://nextwork.ai/projects/99b558af-381c-5c9e-afef-a2d5e19992c0 ยท Part of my NextWork Learning portfolio (hub).
Verification output¶
From docs/verification.txt:
$ rm -rf output && PYTHONPATH=src CREWAI_TRACING_ENABLED=false OTEL_SDK_DISABLED=true timeout 3600 /workspace/nextwork-portfolio/.venv/bin/python -m blog_crew.main 'Running AI models locally with Ollama' > /tmp/crew-run.log 2>&1; rc=$?; tail -40 /tmp/crew-run.log; test $rc = 0 && test -s output/blog_post.md && test -s output/social_posts.md && head -30 output/blog_post.md && echo && cat output/social_posts.md
#### Resource Efficiency
Deploying models locally can help in reducing costs associated with cloud storage and bandwidth. By eliminating the need for cloud storage and bandwidth, you can save on both hardware and operational expenses. This is especially advantageous for applications that require minimal resources or are running on limited budgets.
#### Scalability
Local models can be easily scaled up or down based on the workload, providing flexibility in resource allocation. This scalability is particularly useful in applications that experience varying levels of traffic or where the workload can be dynamically adjusted.
#### Security
Deploying models locally can enhance security by isolating them from the internet, reducing the risk of unauthorized access or data breaches. This is especially important in environments where data privacy is a concern.
#### Customization
Local deployment allows for customization of model settings and parameters, tailored to specific use cases and data. This customization can lead to better performance and more accurate predictions, as the model is optimized for the specific requirements of the application.
## Interoperability
Local models can be easily integrated with other local applications, facilitating a seamless workflow without the need for complex integration with external systems. This interoperability ensures that the model can be seamlessly integrated into existing workflows, enhancing the overall efficiency of the application.
## Unresolved: Security Implications
There is a slight uncertainty regarding the security implications of running AI models locally. Running models locally can introduce additional risks if not handled properly. For example, local models could be more susceptible to security threats, such as malware or unauthorized access, if they are not properly secured. It is crucial to implement robust security measures, such as encryption, access controls, and regular security audits, to mitigate these risks.
## Conclusion
Running AI models locally offers several advantages, including improved performance, reduced costs, enhanced security, increased flexibility, and improved interoperability. While there are some considerations to keep in mind, such as the potential security risks, the benefits of local deployment outweigh the drawbacks. By understanding and addressing these considerations, you can confidently deploy AI models locally and reap the benefits of improved performance, reduced costs, enhanced security, and increased flexibility.
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Tracing Status โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ โ โ โ Info: Tracing is disabled. โ โ โ โ To enable tracing, do any one of these: โ โ โข Set tracing=True in your Crew/Flow code โ โ โข Set CREWAI_TRACING_ENABLED=true in your project's .env file โ โ โข Run: crewai traces enable โ โ โ โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
# Running AI Models Locally: A Beginner's Guide
## Introduction
Running AI models locally is a powerful approach that offers several benefits, including improved performance, reduced costs, enhanced security, and increased flexibility. In this blog post, we'll explore how to deploy AI models locally, the advantages of doing so, and some considerations to keep in mind.
## Benefits of Running AI Models Locally
#### Performance Optimization
Locally deployed models can be optimized for performance, reducing latency and increasing the speed of predictions. This is particularly beneficial in scenarios where quick response times are crucial, such as in real-time applications or applications with high transaction volumes.
#### Resource Efficiency
Deploying models locally can help in reducing costs associated with cloud storage and bandwidth. By eliminating the need for cloud storage and bandwidth, you can save on both hardware and operational expenses. This is especially advantageous for applications that require minimal resources or are running on limited budgets.
#### Scalability
Local models can be easily scaled up or down based on the workload, providing flexibility in resource allocation. This scalability is particularly useful in applications that experience varying levels of traffic or where the workload can be dynamically adjusted.
#### Security
Deploying models locally can enhance security by isolating them from the internet, reducing the risk of unauthorized access or data breaches. This is especially important in environments where data privacy is a concern.
#### Customization
Local deployment allows for customization of model settings and parameters, tailored to specific use cases and data. This customization can lead to better performance and more accurate predictions, as the model is optimized for the specific requirements of the application.
## Interoperability
```markdown
# Running AI Models Locally: A Beginner's Guide
## Introduction
Running AI models locally is a powerful approach that offers several benefits, including improved performance, reduced costs, enhanced security, and increased flexibility. In this blog post, we'll explore how to
โฆ (truncated; full file in the repo)