Apps SDK window.openai.callTool not injecting the information into the messages

Hey, we are building a chatbot using the Apps SDK components. The problem we are facing is that when you use the window.openai.callTool the context of the chatgpt does not know about it.

For example when I would set a payment method inside of the widget and say that the order could be finalized the LLM would not let me as it does not have information about setting the payment method in the widget itself.

Solution: add the call tool in the messages so that the next interaction works properly and has all the information on what happened when interacting with the widget

1 Like