ChatKit usecase without frontend
Open
Nobody has claimed this yet.
documentation
question
sdk
- Dominant language
- Kotlin
- Stars
- 1.5k
- Forks
- 264
- Avg merge
- 9h 46m
- Merged PRs (30d)
- 96
Description
I want to call ChatKit directly from my Java code. I successfully generated a secret, but I don't understand what I should do next?
public void callOpenAI() {
OpenAIClient client = OpenAIOkHttpClient.builder()
.fromEnv()
.apiKey("key")
.build();
var param2 = ChatSessionWorkflowParam.builder().id("id").build();
var params = SessionCreateParams.builder().user("name").workflow( param2).build();
ChatSession chatSession = client.beta().chatkit().sessions().create(params);
String secret = chatSession.clientSecret();
}
I want to call ChatKit with an initial text to begin the agent workflow
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Java example using client.beta().chatkit().sessions().create(params), ChatSessionWorkflowParam, and SessionCreateParams. Trace how the returned clientSecret is intended to be used without a frontend and determine the supported way to provide initial text; done means a documented or tested Java path that starts the agent workflow with that text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100