An open API service indexing awesome lists of open source software.

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

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)