Skip to content

muehlemann-popp/hapimag-prompt-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Concierge Prompt Generation

A Python tool that generates system prompts for the Hapimag AI Concierge (Magi) from Excel-based instruction sheets.

Overview

This tool processes structured instructions from an Excel file and generates a comprehensive system prompt for an LLM-based AI concierge. The system prompt includes both general behavioral instructions and specific capability definitions.

Features

  • Excel-based Input: Easy-to-maintain instruction sheets for non-technical stakeholders
  • Filtered Processing: Automatically includes only instructions marked for inclusion
  • Structured Output: Generates well-formatted Markdown system prompts
  • Dual Instruction Types: Handles both general instructions and specific capabilities

Requirements

  • Python 3.7+
  • openpyxl library

Install dependencies:

pip install openpyxl

Usage

Quick Start

  1. Ensure skill-card.xlsx is in the same directory as the script
  2. Run the generator:
python generate_system_prompt.py
  1. Find the generated prompt in system_prompt.md

Input File Structure

The script expects an Excel file (skill-card.xlsx) with two sheets:

1. General Chat Instructions

  • Row 4: Column headers
  • Data starts: Row 5
  • Columns used:
    • Column E: Title
    • Column F: Goal/Instruction
    • Column K: Include in system prompt (Yes/No)

Only rows with "Yes" in column K are included.

2. Specific Chat Capabilities

  • Row 3: Column headers
  • Data starts: Row 4
  • Columns used:
    • Column E: User Intent
    • Column F: User Prompt Examples
    • Column J: Include in system prompt (Yes/No)
    • Column K: Tool to use
    • Column O: Decision Logic

Only rows with "Yes" in column J are included.

Output

The script generates system_prompt.md containing:

  1. General Instructions - Behavioral guidelines, tone of voice, data sources, etc.
  2. Specific Chat Capabilities - Defined capabilities with:
    • User intent description
    • Example user prompts
    • Tool recommendations
    • Decision logic

Example Output Structure

# Hapimag AI Concierge (Magi) - System Prompt

Generated on: 2025-10-02 06:43:34

## General Instructions

### Language
Magi adapts the language of the chatbot user...

### Role & Task
The Hapimag AI Concierge is named Magi...

## Specific Chat Capabilities

### Capability 1
**User Intent:** I want to reserve parking...
**Example Prompts:** "Where can I park?", "Book parking"...
**Tool to Use:** `get_resort_details`
**Decision Logic:**
1. If canBeBookedDirectly = "Yes" → web booking form
...

Project Context

This tool is part of the Hapimag AI Concierge project, which provides conversational AI assistance for Hapimag vacation rental members. The generated system prompts are used to configure the LLM behavior for:

  • Pre-stay vacation planning
  • Travel arrangement assistance
  • In-stay resort information
  • Post-stay follow-up

Files

  • generate_system_prompt.py - Main generator script
  • skill-card.xlsx - Source Excel file with instructions
  • system_prompt.md - Generated output (created by script)
  • README.md - This file

Customization

To modify the generated prompt:

  1. Update instructions in skill-card.xlsx
  2. Set "Include in system prompt" to "Yes" for desired rows
  3. Re-run the generator script

The tool automatically:

  • Filters based on inclusion flags
  • Formats the output as Markdown
  • Adds generation timestamp
  • Organizes content by category

Statistics

Current configuration generates:

  • ✅ 17 general instructions
  • ✅ 9 specific capabilities
  • ✅ ~250 lines of formatted Markdown

License

Part of the Hapimag AI Concierge project.

About

Python tool to generate AI Concierge system prompts from Excel instruction sheets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages