Facilitate Callbacks
This feature allows a C3 Agentic AI Platform action to invoke an external process that can then call back into the C3 Server, propagating the EnvironmentVariable#ACTION_ID and authentication information. The C3 Server process that invoked the external process must be running the parent action to invoke the callback action. The authentication token is only valid if the parent action is running.
The external process must set two HTTP headers when calling back into the C3 Server:
Authorization: The value of the new C3 Action Authentication Token.X-C3-Parent-Action-Id: The action ID of the action that invoked the external process function.
When invoking an external process using the ExternalActionEngine Type, the C3 Server invokes the external process while passing the following three environment variables relevant to the Action authentication:
EnvironmentVariable#ACTION_AUTH_TOKEN : The Action Authentication token used by the external engine to callback into the C3 Server. This is the value that must be passed in the Authorization header. The token contains the encrypted C3 action ID.
EnvironmentVariable#ENV : Specifies a valid C3 Env name
EnvironmentVariable#APP : Specifies a valid C3 App name in the context of the environment
