I tried using the AI assistant feature. I have filled in Assistant Tasks also all the provisions of Assistant Settings, Assistant Role, AI Provider, and settings from the provider.
When in the tab viewer I tried to run this feature properly. But when I tried to install it in the application I developed, this AI assistant feature did not appear. The tab does not appear. I will include some screenshots of SAB and applications and some parts of my appDef.
I also tried with API keys from OpenAI and Groq. When with the OpenAI API it always results in “Error: Invalid Key”, If I use Groq it works in tab Viewers.
<provider service="openai">
<model value="gpt-4o-mini"/>
<api-key>xxxxxxxxxxx</api-key>
<features type="ai-provider">
<feature name="assistant-id" value=""/>
</features>
</provider>
<heading>
<translation lang="default">How can I help?</translation>
<translation lang="id">Bagaimana saya bisa membantu?</translation>
</heading>
<footer>
<translation lang="default">Notes: Pray for the Holy Spirit to give us understanding when we do Bible study. AI is only a tool whose results must be compared back to the Bible.</translation>
<translation lang="id">Catatan: Berdoalah mohon Roh Kudus memberikan pengertian ketika kita melakukan studi Alkitab. AI hanya alat yang hasilnya harus dibandingkan kembali dengan Alkitab.</translation>
</footer>
<features type="assistant">
<feature name="text-model" value="gpt-3.5-turbo"/>
<feature name="tab-type" value="A"/>
</features>
<tasks>
<task enabled="true">
<context value="chapter|verse|verses"/>
<book-context type="include-groups" value="OT, NT"/>
<name>
<translation lang="en">Bible Study Questions</translation>
<translation lang="fr">Questions d'Ă©tude biblique</translation>
</name>
<title>
<translation lang="en">Give me some Bible study questions</translation>
<translation lang="fr">Donner des questions d'Ă©tude biblique</translation>
</title>
<prompt>Look at %reference% and give me six questions for a Bible study.</prompt>
</task>
<task enabled="false">
<context value="chapter|verse|verses"/>
<book-context type="include-groups" value="OT, NT"/>
<name>
<translation lang="en">Listening Group Questions</translation>
<translation lang="fr">Questions pour un groupe d'Ă©coute</translation>
</name>
<title>
<translation lang="en">Suggest some questions for a listening group</translation>
<translation lang="fr">Suggérer quelques questions pour un groupe d'écoute</translation>
</title>
<prompt>Look at %reference% and suggest some discussion questions for a group that is meeting together to listen to this passage. Keep it simple. Most people in the group will just be listening, and will not have a Bible in front of them to refer to.</prompt>
</task>
<task enabled="false">
<context value="chapter|verse|verses"/>
<book-context type="include-groups" value="OT, NT"/>
<name>
<translation lang="en">Structure</translation>
<translation lang="fr">Structure</translation>
</name>
<title>
<translation lang="en">Show me the main points and structure of this passage</translation>
<translation lang="fr">Montrer les points principaux et la structure de ce passage</translation>
</title>
<prompt>Look at %reference% and explain the main points of the passage.</prompt>
</task>
<task enabled="true">
<context value="chapter|verse|verses"/>
<book-context type="include-groups" value="OT, NT"/>
<name>
<translation lang="en">Devotional Thoughts</translation>
<translation lang="fr">Réflexions pour une méditation</translation>
</name>
<title>
<translation lang="en">Share some devotional thoughts on this passage</translation>
<translation lang="fr">Partager quelques pensées pour une méditation sur ce passage</translation>
</title>
<prompt>Look at %reference% and give me some devotional thoughts. Write in a friendly and encouraging style.</prompt>
</task>
<task enabled="true">
<context value="chapter|verse|verses"/>
<book-context type="include-groups" value="OT, NT"/>
<name>
<translation lang="en">Life Application</translation>
<translation lang="fr">Application Ă la vie</translation>
</name>
<title>
<translation lang="en">Suggest ways to apply this passage to my life</translation>
<translation lang="fr">Suggérer des façons d'appliquer ce passage à ma vie</translation>
</title>
<prompt>Look at %reference% and give me some ideas for applying it to my life.</prompt>
</task>
<task enabled="false">
<context value="chapter|verse|verses"/>
<book-context type="include-groups" value="OT, NT"/>
<name>
<translation lang="en">Original Words</translation>
<translation lang="fr">Mots originaux</translation>
</name>
<title>
<translation lang="en">Identify some of the key Greek or Hebrew words</translation>
<translation lang="fr">Identifier certains des mots clés en grec ou en hébreu</translation>
</title>
<prompt>Look at %reference% and explain some of the words found in the original %biblical-language%. Please cite the words in their original orthography, as well as giving transliterations.</prompt>
</task>
<task enabled="false">
<context value="chapter|verse|verses"/>
<book-context type="include-groups" value="OT, NT"/>
<name>
<translation lang="en">Talk Outline</translation>
<translation lang="fr">Plan d'un message</translation>
</name>
<title>
<translation lang="en">Suggest an outline for a talk on this passage</translation>
<translation lang="fr">Suggérer un plan pour un message sur ce passage</translation>
</title>
<prompt>Look at %reference% and suggest an outline for a Bible talk or sermon on this passage.</prompt>
</task>
<task enabled="false">
<context value="chapter|verse|verses"/>
<book-context type="include-groups" value="OT, NT"/>
<name>
<translation lang="en">Context</translation>
<translation lang="fr">Contexte</translation>
</name>
<title>
<translation lang="en">Tell me about the cultural, historical and geographical context</translation>
<translation lang="fr">Parler du contexte culturel, historique et géographique</translation>
</title>
<prompt>Look at %reference% and explain the cultural, historical and geographical context.</prompt>
</task>
<task enabled="false">
<context value="chapter|verse|verses"/>
<book-context type="include-groups" value="OT, NT"/>
<name>
<translation lang="en">Role in book</translation>
<translation lang="fr">RĂ´le dans le livre</translation>
</name>
<title>
<translation lang="en">Show how this passage fits into the message of the book</translation>
<translation lang="fr">Montrer comment ce passage s'inscrit dans le message du livre</translation>
</title>
<prompt>Look at %reference% and explain how this passage fits into the message of the whole book of %book%.</prompt>
</task>
</tasks>