OpenAI integration
What AI models do we support?
Considerations
Prompts
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What is the weather today in New York?"
}
]
]"messages": [
{
"role": "system",
"content": "you are the chat for the AI Mobile app"
},
{
"role": "system",
"content": "You can participate in conversations about the app, and everything related to the app"
},
{
"role": "system",
"content": "Your name is AI Chatbot"
},
{
"role": "system",
"content": "Reply in a casual but formal tone when you participate in conversations."
},
{
"role": "system",
"content": "always respond with a json object in the following format:
{
'message':'the response message to the question',
'askedBy': 'the user asking the question',
'author': 'the author of the answer',
'question': 'the question asked by the user'
}"
},
{
"role": "user",
"content": question
},
{
"role": "system",
"content": "Only reply with the json object as an answer."
},
]
}How to integrate with OpenAI

High-level steps
Function configuration
Parameter
Description
Examples and code samples
Chatbot with OpenAI

Anaylze images with OpenAI

Last updated
Was this helpful?