Inspiration

Building apps with DocuSign integration often involves rigid SaaS tools or costly custom solutions. We wanted to empower users to create highly customizable apps without being confined to predefined features or expensive development cycles.


What it does

OneShotCodegen allows users to create fully functional apps by simply providing prompts. It generates use cases, database entities, DocuSign templates, and UI details with high accuracy. This includes generating apps with features like creating and signing envelopes, tracking statuses, and managing templates—all integrated seamlessly with DocuSign.


How we built it

We combined AI-driven structured outputs with efficient token management to generate configuration files instead of raw code. These files were converted into SQL scripts, React frontend components, and DocuSign templates using Python scripts. The workflow relies on linear AI calls to maintain context and optimize token usage.


Challenges we ran into

  • Early approaches with recursive AI calls were inefficient, leading to high token costs and incomplete outputs.
  • Models often omitted important features due to token limits.
  • Balancing cost and quality required iterative fine-tuning and experimenting with structured outputs.

Accomplishments that we're proud of

  • Reduced app generation cost by 99%, from ~$2/app to ~$0.02.
  • Achieved 96% first-generation accuracy for generated apps.
  • Leveraged smaller, more affordable AI models like GPT-4o-mini to deliver high-quality results.
  • Gained 200+ GitHub stars for the CLI version during development.

What we learned

  • Structured output combined with one-shot examples dramatically improves accuracy and token efficiency.
  • Config-based generation is more reliable and scalable compared to direct code generation.
  • Smaller AI models can deliver exceptional results when fine-tuned for specific tasks.

What's next for OneShotCodegen

  • Enhance UI generation to support more complex components and workflows.
  • Introduce user-friendly deployment and editing features for generated apps.
  • Explore fine-tuned AI models hosted on Groq or custom servers for further cost reductions.
  • Expand use cases beyond DocuSign to integrate other services and platforms.

Built With

Share this project:

Updates