Skip to content
FitCoreAI: AI-Power...
 
Notifications
Clear all

FitCoreAI: AI-Powered Fitness/Nutrition Plan PDF Generator with callin.io × Django × Streamlit × DRF × pdfkit

1 Posts
1 Users
0 Reactions
4 Views
Shadi
(@shadi)
Posts: 1
New Member
Topic starter
 

What is FitCoreAI?

FitCoreAI is a modern, open, and adaptable workflow that combines AI-driven fitness planning with instant, polished PDF generation. Users interact through a clean Streamlit web application, with automation powered by callin.io, Django REST Framework, and pdfkit.


How Does It Work?

1. Streamlit Frontend

  • Users complete a straightforward form (name, age, gender, height, weight, goal, etc.).
  • Upon submission, data is transmitted via a requests POST to your callin.io webhook.
  • Example payload :
{
  "name": "John",
  "age": "28",
  "gender": "male",
  "height": "178",
  "weight": "75",
  "goal": "build muscle",
  "diet": "high protein",
  "level": "intermediate",
  "days": "4"
}

The Streamlit UI is intuitive and visually appealing :

pdf sample :

2. callin.io Workflow

  • Webhook: Receives form data.
  • AI Agent: Invokes a language model to generate a tailored HTML fitness plan using strict formatting.
  • HTTP Request: Sends the HTML & user data to your Django API (DRF endpoint), which creates a PDF using pdfkit.
  • JS Code Node: Renames the binary file with the user’s name for clarity.
  • HTTP Request: Uploads the PDF to storage or another custom endpoint. (developed with a Django API)

3. Django REST Framework Backend

  • PDF Generation Endpoint: Accepts POSTed data, renders the HTML to PDF using pdfkit, and returns it.
  • Upload/Listing Endpoint: Stores metadata for each PDF, supports querying by specific ID and name, and utilizes DRF serializers.
  • File Handling: PDF files are uploaded and stored using Django’s FileField with validators and security measures.

4. Streamlit PDF Preview (Optional)

  • You can enhance the Streamlit application to preview or download the generated PDF directly.

callin.io Workflow

Key Features

  • Interactive Streamlit App frontend for user data collection.
  • Flexible callin.io Workflow: Orchestrates AI, PDF generation, and file handling.
  • Django REST API: Manages PDF creation and storage.
  • AI-powered HTML Plan Generation for consistent styling and straightforward PDF rendering.
  • Modular: Easily extendable for other document types (meal plans, business summaries, etc).
  • Open-source: Swap endpoints, models, or storage as needed.

Contact & Collaboration

Feel free to get in touch:

Extending the Project ( what i am adding now )

  • Incorporate user authentication (DRF supports this natively).
  • Integrate email delivery for PDFs.
  • Enhance the Streamlit app for PDF previewing/downloading post-creation.
  • Utilize any LLM or PDF rendering service of your choice (simply update the endpoints).

Thanks for reading!
If you have any ideas or suggestions, please reach out or leave a comment.
Let me know if you require anything else, such as more screenshots or a video demonstration!

 
Posted : 11/05/2025 2:15 am
Share: