For the complete documentation index, see llms.txt. This page is also available as Markdown.

Advanced functions: best practices and use cases

Best practices for using functions

Following these best practices will help you create effective and reliable functions:

  1. Clear, concise names: choose names that immediately describe the function's purpose for example, "get_weather" is clearer than "external_service"

  2. Detailed descriptions: provide a complete description explaining what the function does and when to use it; this helps both the AI and other developers understand its purpose

  3. Well-defined parameters: clearly define the required parameters and provide a complete description to guide the generative AI

  4. Test, test, test: before putting a function into production, test it in various scenarios

Common use cases

Functions in AIsuru can be used in many creative ways. Here are some common use cases to inspire you:

  • Connecting to a website: retrieve real-time information from external sources, like weather forecasts, exchange rates, or breaking news

  • CRM integration: let the AI access and update customer data in your CRM without ever leaving the chat

  • Email integration: receive an email with the user's details when they show interest in your services

  • Availability checking: check product availability in a warehouse or hotel room availability

Last updated