GithubHelp home page GithubHelp logo

Comments (16)

tomlm avatar tomlm commented on May 18, 2024

it is api.botframework.com

from botframework-sdk.

wbreza avatar wbreza commented on May 18, 2024

Thanks - I've tried the following with no success. I'm attempting to start a new conversation using the direct line REST API passing in the secret from my bots direct line secret obtained from the portal.

Request
POST - https://api.botframework.com/api/conversations
Authorization: BotConnector {secret}

Response
HTTP/1.1 404 Resource Not Found
Content-Length: 54
Content-Type: application/json
Date: Wed, 06 Apr 2016 01:56:31 GMT

{ "statusCode": 404, "message": "Resource not found" }

Am I missing anything else?

from botframework-sdk.

wbreza avatar wbreza commented on May 18, 2024

@tomlm ping - See question above.

from botframework-sdk.

dandriscoll avatar dandriscoll commented on May 18, 2024

Sorry, we misspoke earlier. The hostname for the Direct Line API is directline.botframework.com. The api.botframework.com hostname is where the main Bot Connector API is located.

from botframework-sdk.

alin-nemet avatar alin-nemet commented on May 18, 2024

Hi guys, I have a question: I have custom storage for my bot, configured through the ChatConnector, ie replaced state.botframework.com with a custom endpoint; our client uses direct client api; does direct line store data, maybe temporarily? I mean, when I start a conversation, then invoke get messages, it appears direct line gives me messages without hitting my bot connector's api getData, which makes me think it somehow has received it at some point through some interaction direct-line and my bot app; is there a way to know how the whole flow works? I also invoked get message directly for a conversationId:
userMessageSet = userConversations.GetMessages(conversationId);
and it didn't hit the bot connector from my app at all, which seems to tell that direct client (https://directline.botframework.com) somehow stored or cached the answer to a previous conversation.
Thanks.

from botframework-sdk.

dandriscoll avatar dandriscoll commented on May 18, 2024

Hi @alin-nemet, that's correct, the Direct Line service has a temporary message store so that clients can retrieve the message history. We use a cental store because the bot can send messages at any time but the client has no webhook to receive callbacks.

from botframework-sdk.

alin-nemet avatar alin-nemet commented on May 18, 2024

Thx a lot!

from botframework-sdk.

vaibhavkapur22 avatar vaibhavkapur22 commented on May 18, 2024

And how does a Bot send a message to the Directline? What service URL should I use then?

from botframework-sdk.

vaibhavkapur22 avatar vaibhavkapur22 commented on May 18, 2024

I want to a send a message to an existing conversation between my bot and the directline client. I have the conversation ID. How do I do that? Using what service URL?

from botframework-sdk.

michaelhutchful avatar michaelhutchful commented on May 18, 2024

from botframework-sdk.

vaibhavkapur22 avatar vaibhavkapur22 commented on May 18, 2024

from botframework-sdk.

michaelhutchful avatar michaelhutchful commented on May 18, 2024

from botframework-sdk.

vaibhavkapur22 avatar vaibhavkapur22 commented on May 18, 2024

from botframework-sdk.

michaelhutchful avatar michaelhutchful commented on May 18, 2024

from botframework-sdk.

vaibhavkapur22 avatar vaibhavkapur22 commented on May 18, 2024

from botframework-sdk.

mutanttech avatar mutanttech commented on May 18, 2024

Hi Guys,
I have configured a Web Chat Channel and a Direct Line Channel on Azure Bot Service. I am using the web chat control on the client side i.e. on a web page to provide a UI to users. For now I am using the Web chat control as it is i.e. included botchat.js in html served from my local server and also botchat.css which I have modified the css to give a custom look n feel. There will be requirement in future where I might have to create a custom build of Web Chat control source code, to reduce the overall size of botchat.js file and do some custom implementation as well. My question is it right way to use the UI for a website. Please share your experience and best practice for the same. Are there any other ways to do UI for Website, because I want to support the flexibility of displaying various types of responses like text, video, hero cards etc. Also, for now I am passing the secret key in the BotChat.App code, but I am confused which secret key to use, the one from WebChat Channel or DirectLine Channel. Please help me guys.
Thanks and Cheers for your efforts..

from botframework-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.