https://github.com/maestroerror/appointments-agent-example
Example project using LarAgent package featuring AppointmentAssistant with a purpose to help customers book a time slot in dental clinic
https://github.com/maestroerror/appointments-agent-example
ai aiagent example-project laragent laravel
Last synced: 3 months ago
JSON representation
Example project using LarAgent package featuring AppointmentAssistant with a purpose to help customers book a time slot in dental clinic
- Host: GitHub
- URL: https://github.com/maestroerror/appointments-agent-example
- Owner: MaestroError
- License: mit
- Created: 2025-03-25T09:52:41.000Z (over 1 year ago)
- Default Branch: maestro
- Last Pushed: 2025-03-25T10:08:33.000Z (over 1 year ago)
- Last Synced: 2025-03-25T11:23:51.484Z (over 1 year ago)
- Topics: ai, aiagent, example-project, laragent, laravel
- Language: Blade
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# appointments-agent-example
Check `config/laragent.php` for providers configurations. You will need ollama for local development or OpenAi api key to set in .env file.
- Video [Build an AI Agent in Laravel Using Local LLMs (No Token Costs!)](https://www.youtube.com/watch?v=A44IKGPrf-k)
- Article [Laravel AI Tutorial: Create Local Agents with Ollama](https://laragent.substack.com/p/create-local-agent-with-laravel-and-ollama)
## AppointmentAssistant
Located in `app/AiAgents/AppointmentAssistant.php`.
Tools:
- `checkAvailability`
- `bookAppointment`
- `transferToManager`
### Prompts
Check `resources\views\AppointmentAssistant` for prompts and tool results.
### Models
We use `Service` and `Slot` models for appointment scheduling. There are seeders to add some test data, so don't forget to run `db:seed` while installing this project.
### Testing agent
After setting up the project, you can test the agent by running `php artisan agent:chat AppointmentAssistant`
## License
MIT
## Credits
- [LarAgent](https://github.com/maestroerror/laragent)
- [Revaz Gh.](https://github.com/maestroerror)