AI Assistant Feature

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&apos;Ă©tude biblique</translation>
    </name>
    <title>
      <translation lang="en">Give me some Bible study questions</translation>
      <translation lang="fr">Donner des questions d&apos;Ă©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&apos;Ă©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&apos;é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&apos;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&apos;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&apos;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>

Is there an error on my part, or is there something I haven’t filled in?

@elan It looks like you have filled in everything you need to. It would be worth checking that the API key from OpenAI is correct and listed as still valid on the OpenAI website. If not, try creating another one.

@richard I successfully used groq but how do I get the AI Assistant feature to show up?

Do I have to create a section or tab first?

The Assistant tab will appear when a Bible book is displayed. You do not need to create a tab separately. If you have enabled the AI assistant feature, the additional tab will be created automatically.

I have a problem: in Thai headings are not displayed correctly

@richard I have tried to build with the OpenAI key and when I try in the tab viewer it works but when I try to install the apk on my device the Assistant tab does not appear. [I tried in Genesis 1]

I have the same problem. In the tab it works but not in the app (I have tried with IOS). Where is it supposed to be shown? I also saw that in Thai if the heading (of the “How can I help you”) is set to bold the font will not be displayed properly. If it is normal everything is ok.

I really hope to see the AI working in SAB!!!

1 Like

Is anybody able to use the AI?

Not yet, i think maybe the next version will offer this feature…

@Richard @ChrisHubbard Any clue on how to make the AI work? I have been trying…everything works well in SAB but not in the compiled apps (both IOS and Android). Now with Xcode Version 16.0 (16A242d) and Sequoia 15.0.1 (24A348) it does not even open the app…it crashes. At least before the app opened even though the AI assistant was not loading (even if I checked the “use the assistant in the app”).

Hello @Daniele_Mazza, it should be working, so in order to track down the problem, we will need some more information from you. Please can you go to the Support page, create a ticket, and send us a link to a sample project. Please explain what you see happening or not happening. Then we can investigate further. Thanks.

Were you able to investigate the problem further? Please let me know if there is anything I should adjust to make the AI Assistant work. Thanks

Is there clear documentation or tutorial on how to use AI Assistant (from preparation of each item to compilation on Android or iOS)?

it might be helpful if it is made into a video or pdf.

Yes, we have found the problem! Sorry about that - we will release a fix in the next few days.

1 Like

Patiently waiting for the few days :pray::pray:

Thank you so much! It works well now!

1 Like

@Daniele_Mazza can you compile AI assistant on android and iOS? can you tell me how to compile so that the feature can appear?