Android 애플리케이션에 RASA 챗봇 통합 (Integration of RASA Chatbot on Android Application)


문제 설명

Android 애플리케이션에 RASA 챗봇 통합 (Integration of RASA Chatbot on Android Application)

제 질문은 제가 RASA를 사용하여 AI 기반 은행 챗봇을 개발하고 있다는 것입니다. 모바일 애플리케이션(Android)에 배포하거나 통합하는 방법을 알려주실 수 있나요?

미리 감사합니다.


참조 솔루션

방법 1:

I assume you use retrofit/Gson, if not it's easy to get the idea at first you need to retrive JWT token, for that you need to call

    @POST("api/auth/jwt")
    fun authenticateAsync(@Body authRequest: AuthRequest): Deferred<AuthResponse>

where AuthRequest is

data class AuthRequest(
    @SerializedName("conversation_id")
    @Expose
    val conversation_id: String = UUID.randomUUID().toString(),
    @SerializedName("chat_token")
    @Expose
    val chat_token: String
)

where conversation id is some random string, chat_token is the token when you share the bot, smth like 87f7d34f9aa74d51asdqwe27fac62c44

after getting jwt token you can post messages with

@POST("api/conversations/{conversation_id}/messages?environment=production")
fun postMessageAsync(
    @Header("Authorization") token: String,
    @Path("conversation_id") conversation_id: String,
    @Body messageRequest: MessageRequest
): Deferred<List<ChatMessageResponse>>

where

data class MessageRequest(
    @SerializedName("message")
    @Expose
    val message: String
)

and

data class ChatMessageResponse(
    @SerializedName("recipient_id")
    @Expose
    val recipient_id: String,
    @SerializedName("text")
    @Expose
    val text: String,
    @SerializedName("externalFields")
    @Expose
    val externalFields: List<String>,
    @SerializedName("custom")
    @Expose
    val custom: CustomResponseData? = null
)

Hope it was helpful

(by Afaq KhanHakob Hakobyan)

참조 문서

  1. Integration of RASA Chatbot on Android Application (CC BY‑SA 2.5/3.0/4.0)

#Artificial-Intelligence #rasa #rasa-nlu #rasa-core #rasa-x






관련 질문

C++의 Langtons Ant(콘솔) - 코어 덤프됨 (Langtons Ant in C++ (console) - core dumped)

그리드 맵 탐색/채우기 알고리즘 (Algorithm for exploring/filling grid map)

사이먼 마크 투 오픈 소스 코드 (cyman mark two open souce code)

가위바위보 AI 이슈 (Rock paper scissors AI issue)

::pause >nul은 무엇을 의미합니까? (배치로) (What does ::pause >nul mean/do? (in batch))

4x4 TicTacToe 보드의 Minimax 알고리즘 (Minimax algorithm in 4x4 TicTacToe board)

타의 추종을 불허하는 minimax 검사기 알고리즘 (Unbeatable minimax checkers algorithm)

기계 학습을 사용하여 손으로 쓴 서명 이미지의 배경 제거 (Using machine learning to remove background in image of hand-written signature)

유효한 인덱스를 반환하지 않는 Tensorflow 텍스트 생성 (Tensorflow text generation not returning valid index)

NLP의 의미론적 유사성(텍스트 비교) - 최고의 패키지 또는 클라우드 서비스? (Semantic similarity (text comparison) in NLP - best package or cloud service?)

Android 애플리케이션에 RASA 챗봇 통합 (Integration of RASA Chatbot on Android Application)

Python과 함께 스레딩을 사용할 때 발생하는 코루틴 오류, RuntimeWarning: 코루틴 'time_messege'가 기다리지 않았습니다. (Coroutine error when using threading with python, RuntimeWarning: coroutine 'time_messege' was never awaited)







코멘트