Senior AI Backend Engineer – Fix OpenAI Tool Calling Loop (Laravel SaaS)

Posted 6 hours ago

Worldwide

Summary

Description We are building an AI-powered salon management SaaS platform. Our AI assistants have access to multiple internal tools (bookings, customers, revenue analytics, dashboard metrics, staff, services, etc.). The backend is built with Laravel (PHP) and uses OpenAI. We are looking for an experienced AI backend engineer to improve our current AI agent architecture. Current Problem Our AI can call tools, but the orchestration is implemented incorrectly. Current flow: User asks a question. LLM requests a tool. Backend executes the tool. Tool result is processed separately. Final response is returned. Because of this: the main LLM never reasons over the tool output; it cannot combine multiple tool results; responses are generic instead of data-driven. What We Need We want to implement a proper multi-step tool-calling loop: User ↓ LLM ↓ Tool Call ↓ Backend executes tool ↓ Tool Result ↓ LLM ↓ (optional additional tool calls) ↓ Final answer The AI should be able to call multiple tools before generating the final response. Scope of Work We need someone who can: review the current architecture; refactor the tool-calling flow; implement a proper OpenAI tool loop; support multiple sequential tool calls; return tool outputs back into the same conversation; improve conversation state management; implement structured JSON tool schemas; prevent infinite tool loops; improve error handling; improve logging and debugging. Bonus if you have experience with: LangGraph LangChain OpenAI Responses API Langfuse AI agent observability Tech Stack Laravel (PHP) OpenAI API MySQL REST APIs Required Experience Please only apply if you have experience with: OpenAI Tool Calling / Function Calling AI Agents Multi-step Agent Workflows Agent Orchestration LLM Context Management Laravel / PHP Backend When Applying Please answer these questions: Have you built AI agents using OpenAI Tool Calling? Have you implemented multi-step tool loops where the model can call multiple tools before answering? Have you worked with Laravel? How would you implement the following flow? LLM ↓ Tool Call ↓ Tool Result ↓ LLM ↓ Additional Tool (if needed) ↓ Final Answer Have you used LangGraph, LangChain or similar frameworks? Please share links or screenshots of similar AI agent projects. Based on this description, what is your rough estimate (hours and cost)? Important We are NOT looking for: Prompt Engineers Chatbot builders Make.com / Zapier automation experts No-code AI developers We are looking for someone with real experience building production AI agents with tool calling and orchestration.

  • Less than 30 hrs/week
    Hourly
  • < 1 month
    Duration
  • Expert
    Experience Level
  • Remote Job
  • One-time project
    Project Type
Skills and Expertise
Mandatory skills
PHP
API
Activity on this job
  • Proposals:50+
  • Last viewed by client:40 minutes ago
  • Interviewing:
    12
  • Invites sent:
    18
  • Unanswered invites:
    3
About the client
Member since Apr 28, 2026
  • Lithuania
    Vilnius9:23 PM
  • $400 total spent
    3 hires, 0 active

Explore similar jobs on Upwork

Zero Trust Access Blog Content WritingFixed-price‐ Posted 1 month ago
Java
Golang
Zero Trust Architecture
Content Writing
Article Writing
Redis
Android
Node.js
API
RESTful API
MySQL
Java
PHP

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