Fix AI Chatbot + API Integration Issues on My Web App (OpenAI | REST APIs | Node.js)

Posted 4 hours ago

Worldwide

Summary

I have an AI chatbot embedded in my web app that's connected to a few external APIs. Several things have broken and I need a developer who can jump into the codebase, identify the issues, and fix them cleanly. *The problems:* *Chatbot* • Conversation history is being dropped, each message goes to OpenAI without the previous context • System prompt is not persisting after the first exchange • Responses are not streaming correctly on the frontend, the full reply appears at once instead of token by token *API Integrations* • Chatbot is supposed to call our internal REST API to fetch user data and personalise responses, this call is either failing silently or returning stale data • Webhook from our CRM is hitting the endpoint but the payload isn't being parsed correctly, handler returns 200 but nothing gets processed • Rate limiting on the OpenAI calls isn't implemented, we're hitting limits under small load **Tech involved:** • Frontend: React • Backend: Node.js / Express • AI: OpenAI GPT-4o (chat completions + streaming) • External: REST API calls, CRM webhook (JSON payload) **What I need:** • Fix conversation history so full context is passed with every API call • Stabilise the streaming response on the React side • Debug the internal API call the bot makes mid-conversation • Fix webhook payload parsing so CRM events are processed correctly • Add basic rate limiting and error handling on the OpenAI calls **Requirements:** • Strong with OpenAI API, chat completions, streaming, token management • Comfortable debugging REST APIs and webhook handlers in Node.js/Express • Can read existing code quickly and fix without a full rewrite • Please include a short note on which of these issues you've dealt with before Budget: $20 | Timeline: 1-2 days

  • $20.00

    Fixed-price
  • Intermediate
    Experience Level
  • Remote Job
  • One-time project
    Project Type
Skills and Expertise
Mandatory skills
API
RESTful API
API Integration
Activity on this job
  • Proposals:15 to 20
  • Last viewed by client:3 hours ago
  • Hires:
    1
  • Interviewing:
    0
  • Invites sent:
    1
  • Unanswered invites:
    0
About the client
Member since Apr 28, 2026
  • United States
    Arizona3:44 PM
  • $1K total spent
    49 hires, 9 active

Explore similar jobs on Upwork

HIPAA
MySQL
Supabase
BaaS
Backend Development with SupabaseFixed-price‐ Posted 1 month ago
PHP
MySQL
JavaScript
HTML5

How it works

  • Post a job icon
    Create your free profile
    Highlight your skills and experience, show your portfolio, and set your ideal pay rate.
  • Talent comes to you icon
    Work the way you want
    Apply for jobs, create easy-to-by projects, or access exclusive opportunities that come to you.
  • Payment simplified icon
    Get paid securely
    From contract to payment, we help you work safely and get paid securely.
Want to get started? Create a profile

About Upwork

  • Rating is 4.9 out of 5.
    4.9/5
    (Average rating of clients by professionals)
  • G2 2021
    #1 freelance platform
  • 49,000+
    Signed contract every week
  • $2.3B
    Freelancers earned on Upwork in 2020

Find the best freelance jobs

Growing your career is as easy as creating a free profile and finding work like this that fits your skills.

Trusted by

  • Microsoft Logo
  • Airbnb Logo
  • Bissell Logo
  • GoDaddy Logo