Before you start
Make sure you followed the steps listed in getting started with Box AI to create a platform app and authenticate. To get more context, read about agent overrides.Override prompt
This example shows how to use theprompt_template parameter to change the
query result.
The first step is to ask Box AI to summarize a document about Box AI for Documents.
The mode parameter is set to single_item_qa because only one document is supplied.
prompt_template parameter to add some more instructions for Box AI. In this example, let’s change the tone of the response.
Override AI model (text generation)
This example shows you how changing the AI model in theai_agent options can influence the way the text is generated.
First let’s generate some text using the POST ai/text_gen endpoint. This endpoint is using the OpenAI 3.5 turbo model by default.
ai_agent configuration:
