Application of Function Calling in an AI Chatbot for Automating Reservation Services via Instagram Direct Messages: A Case Study of a Baby Spa Clinic
DOI:
https://doi.org/10.62411/tc.v25i4.18160Abstract
This study examines function calling for Instagram reservation inquiries in a Baby Spa application. The audited implementation uses Next.js, Prisma/MySQL, the Repliz API and a configurable OpenAI-compatible language-model endpoint. Five functions retrieve clinic information, availability, account status and customer-service contacts, or create a PENDING reservation for operator review. The orchestrator processes up to ten chats per invocation, retains fifteen messages per chat and allows five model iterations. Code inspection identifies a daily cron schedule, which cannot support timely automatic replies. The original five scenarios document functional coverage, but their exact model configuration was not retained. A supplementary analysis of 330 records from 55 scenarios, three prompt versions and two recorded model identifiers provides quantitative evidence. With the final prompt, intent-label agreement and recorded function-calling success were 100% and 93.6% for the gateway identifier gemini/gemini-3.5-flash-lite, and 83.6% and 68.1% for gpt-4o-mini. Mean recorded processing durations were 3.09 s and 2.68 s, respectively. These durations exclude Instagram delivery and polling delay; end-to-end latency remains unmeasured. The findings support functional feasibility while identifying scheduling, validation and reproducibility limitations. Keywords - function calling; chatbot; Instagram Direct Message; clinic reservation; large language model; Repliz; Next.jsDownloads
Published
Issue
Section
License
Copyright (c) 2026 Triyono, Pipin Widyaningsih

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
License Terms
All articles published in Techno.COM Journal are licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0). This means:
1. Attribution
Readers and users are free to:
-
Share – Copy and redistribute the material in any medium or format.
-
Adapt – Remix, transform, and build upon the material.
As long as proper credit is given to the original work by citing the author(s) and the journal.
2. Non-Commercial Use
-
The material cannot be used for commercial purposes.
-
Commercial use includes selling the content, using it in commercial advertising, or integrating it into products/services for profit.
3. Rights of Authors
-
Authors retain copyright and grant Techno.COM Journal the right to publish the article.
-
Authors can distribute their work (e.g., in institutional repositories or personal websites) with proper acknowledgment of the journal.
4. No Additional Restrictions
-
The journal cannot apply legal terms or technological measures that restrict others from using the material in ways allowed by the license.
5. Disclaimer
-
The journal is not responsible for how the published content is used by third parties.
-
The opinions expressed in the articles are solely those of the authors.
For more details, visit the Creative Commons License Page:
? https://creativecommons.org/licenses/by-nc/4.0/









