#gpt actions

1 messages · Page 1 of 1 (latest)

ripe badger
#

Name: GPT actions with complex APIs
Description/Use-case: I'm trying to use GPT actions to make some API calls based on the conversation. The response of one API needs to be used in the second API. The problem is actions are not always resolving the right payload. It ends up generating an empty payload. Has anyone worked with this or if there are any guidelines or best practices around this?

hollow wing
#

I have used the GPT instructions to describe how one action relates to the other. The other description fields that one can provide always describe just one particular thing. So if you want** action2 **to be called with the results of action1 then I would suggest this approach.

If your actions are not called with proper arguments then you need to check the OpenAPI specification and put in more constraints for example what words are allowed and interpreted correctly for String arguments. Also return some error message that is meaningful so the AI can "try again".

ripe badger
#

Thanks @hollow wing

I've tried the description approach but looks like there is some limit on how long the description can be. If I'm creating a more structured description with points and instructions, it often fails to update the description or completely ignores it. Although it works with 2-3 APIs, its a nightmare when chaining more than 3 APIs with complex nested structures.